wined3d: Avoid clearing the current wined3d context in WineD3D_CreateFakeGLContext().
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 7 Dec 2011 21:08:57 +0000 (22:08 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 8 Dec 2011 09:27:40 +0000 (10:27 +0100)
commitada8ad76b97e7bd2d85d6b943216bc7bc2f58d1c
treedd4d9b825f899eef2e6d352529b18a125c7165eb
parent2d1a941b7dc76d754b15c3f6807fb5e371e367a5
wined3d: Avoid clearing the current wined3d context in WineD3D_CreateFakeGLContext().

There should be no need to clear the thread's current wined3d context as long
as we properly restore the corresponding GL stuff. This avoids hitting the
context restore code in context_enter() when we have e.g. two d3d9 devices,
one of which is inactive, because now we can see that the GL context that's
active belongs to another wined3d context, and we don't need to bother
saving and restoring it.
dlls/wined3d/directx.c