wined3d: Don't call wglMakeCurrent(NULL, NULL) in context_set_current() if the current context is NULL.
This commit is contained in:
parent
3d0475eb4d
commit
8c414df17f
|
@ -762,7 +762,7 @@ BOOL context_set_current(struct wined3d_context *ctx)
|
||||||
}
|
}
|
||||||
ctx->current = 1;
|
ctx->current = 1;
|
||||||
}
|
}
|
||||||
else
|
else if(pwglGetCurrentContext())
|
||||||
{
|
{
|
||||||
TRACE("Clearing current D3D context.\n");
|
TRACE("Clearing current D3D context.\n");
|
||||||
if (!pwglMakeCurrent(NULL, NULL))
|
if (!pwglMakeCurrent(NULL, NULL))
|
||||||
|
|
Loading…
Reference in New Issue