winex11.drv: Make wglShareLists() cope with previously selected destination context (try 3)

Jim Cameron jim_24601 at
Wed Sep 17 16:36:05 CDT 2008

The current wglShareLists() will fail if the destination context has ever been made current. This causes a crash in Homeworld 2, unless pbuffers are disabled. This patch fixes the crash by deleting and recreating the underlying OpenGL context, unless it is still current in some thread.

Improved patch by: Moving the deletion of the old context into the wine_tsx11_lock where it belongs; tracking whether a WGL context is current in some thread so we don't deselect it out from under the app; adding an explanatory comment; a more professional change entry ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-wglShareLists-cope-with-previously-current-de.patch
Type: text/x-diff
Size: 5154 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list