Module: wine Branch: master Commit: ab00044408eb1a6eafcdb87946abcd4ff20095ba URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ab00044408eb1a6eafcdb879... Author: Roderick Colenbrander <thunderbird2k(a)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; }