Commit ada8ad76 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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.
parent 2d1a941b
......@@ -341,11 +341,6 @@ static BOOL WineD3D_CreateFakeGLContext(struct wined3d_fake_gl_ctx *ctx)
}
/* Make it the current GL context. */
if (!context_set_current(NULL))
{
ERR_(d3d_caps)("Failed to clear current D3D context.\n");
}
if (!pwglMakeCurrent(ctx->dc, ctx->gl_ctx))
{
ERR_(d3d_caps)("Failed to make fake GL context current.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment