http://bugs.winehq.org/show_bug.cgi?id=11584
--- Comment #25 from Stefan Dösinger stefandoesinger@gmx.at 2008-02-24 08:39:04 --- The more deeply rooted problem is that PreLoad itself can call ActivateContext to find a GL context. It should be filtered out, but its not really a clear design.
I think what needs to be done (with the current scheme) is to set lastActiveRenderTarget before calling this PreLoad call, to make sure that there isn't an infinite recursion.
However, the PreLoad is wrong at the current place. FindContext must not do anything that leads to opengl calls, because it's FindContexts job to find a GL context to use, and it can't use it itself because it is activated later on.