winex11.drv: cleanup better in X11DRV_WineGL_InitOpenglInfo

Jesse Allen the3dfxdude at gmail.com
Mon Sep 18 14:29:40 CDT 2006


On 9/18/06, Roderick Colenbrander <thunderbird2k at gmx.net> wrote:
> Hi,
>
> I had a little amount of time to look at the issue and have posted a fix to
> the list. It appeared that the GLX context did still exist when
> X11DRV_InitOpenGLInfo got called the second time from a different thread.
> This most likely turned wined3d in a multithreaded OpenGL app which doesn't
> allways work well as OpenGL isn't threadsafe. By switching to a NULL context
> before killing the context, it got killed immedeately (before it became
> inactive which it never became). This fixes atleast 3dmark2001 and halflife2.
>
> Roderick
>


It works with stateblock test too. So yes, that solved the actual problem.

Jesse



More information about the wine-devel mailing list