Commit 8c414df1 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

wined3d: Don't call wglMakeCurrent(NULL, NULL) in context_set_current() if the…

wined3d: Don't call wglMakeCurrent(NULL, NULL) in context_set_current() if the current context is NULL.
parent 3d0475eb
......@@ -762,7 +762,7 @@ BOOL context_set_current(struct wined3d_context *ctx)
}
ctx->current = 1;
}
else
else if(pwglGetCurrentContext())
{
TRACE("Clearing current D3D context.\n");
if (!pwglMakeCurrent(NULL, NULL))
......
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