winex11.drv: Fix wined3d/opengl regression.

oldstable
Roderick Colenbrander 2006-09-18 20:13:21 +02:00 committed by Alexandre Julliard
parent 9796aade28
commit ab00044408
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}