wined3d: Restore the thread's GL context on context_release() if it wasn't created...
commitc0050b8ec91b60d6d6a646095cc22f9856eafeda
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 28 Oct 2009 10:00:13 +0000 (28 11:00 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 28 Oct 2009 10:15:59 +0000 (28 11:15 +0100)
tree3f3a2ed52f975cf9575fab6e6dc432a572a4a30d
parent98027cb535a09749aeb27352d5220cf2152528c8
wined3d: Restore the thread's GL context on context_release() if it wasn't created by wined3d.

The background on this is that some applications use OpenGL and DirectDraw/Direct3D on
the same thread, typically using OpenGL for rendering and DirectDraw to get
the amount of available video memory. This means that we might replace the
application's current GL context with one with a completely different state,
but also that our current GL context might not be what we think it is.
dlls/wined3d/context.c
dlls/wined3d/wined3d_private.h