Roderick Colenbrander : winex11.drv: Fix wined3d/opengl regression.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 20 05:33:33 CDT 2006


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

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Mon Sep 18 20:13:21 2006 +0200

winex11.drv: Fix wined3d/opengl regression.

---

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

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index ebf34f8..8be5489 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -299,7 +299,10 @@ BOOL X11DRV_WineGL_InitOpenglInfo()
 
     wine_tsx11_unlock();
     if(vis) XFree(vis);
-    if(ctx) pglXDestroyContext(gdi_display, ctx);
+    if(ctx) {
+        pglXMakeCurrent(gdi_display, None, NULL);    
+        pglXDestroyContext(gdi_display, ctx);
+    }
     return TRUE;
 }
 




More information about the wine-cvs mailing list