Alexandre Julliard : winex11: Only check for fs register corruption on i386 .

Alexandre Julliard julliard at winehq.org
Thu Dec 24 10:27:19 CST 2009


Module: wine
Branch: master
Commit: 10e12c81831891ac3f1de7b31b46641aa30c0973
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=10e12c81831891ac3f1de7b31b46641aa30c0973

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec 24 12:58:51 2009 +0100

winex11: Only check for fs register corruption on i386.

---

 dlls/winex11.drv/opengl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 38f1dad..5bd0255 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -310,6 +310,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
 
     vis = pglXChooseVisual(gdi_display, screen, attribList);
     if (vis) {
+#ifdef __i386__
         WORD old_fs = wine_get_fs();
         /* Create a GLX Context. Without one we can't query GL information */
         ctx = pglXCreateContext(gdi_display, vis, None, GL_TRUE);
@@ -321,6 +322,9 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
             ERR( "You need to set the \"UseFastTls\" option to \"2\" in your X config file.\n" );
             return FALSE;
         }
+#else
+        ctx = pglXCreateContext(gdi_display, vis, None, GL_TRUE);
+#endif
     }
 
     if (ctx) {




More information about the wine-cvs mailing list