http://bugs.winehq.org/show_bug.cgi?id=28958
--- Comment #6 from Matteo Bruni matteo.mystral@gmail.com 2011-11-03 14:34:02 CDT --- Created attachment 37275 --> http://bugs.winehq.org/attachment.cgi?id=37275 Store gl_info into the wined3d_context
I debugged this one for a while. Apparently we get the crashes because when we destroy the wined3d context, the wined3d_gl_info they point to may be gone.
This patch keeps a separate copy of gl_info into each context. It should fix the bug, but as you can see the patch is quite "invasive", not sure about the approach.
This issue is valid and may affect other applications too, but notice that this demo is buggy with regard to resolution changes: it leaks memory each time you change resolution and even the included readme.txt admits that changing resolution in the menus can hang the game...