From ab00044408eb1a6eafcdb87946abcd4ff20095ba Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Mon, 18 Sep 2006 20:13:21 +0200 Subject: [PATCH] winex11.drv: Fix wined3d/opengl regression. --- dlls/winex11.drv/opengl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index ebf34f8fcae..8be5489ff3d 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; }