wined3d: Don't call wglMakeCurrent(NULL, NULL) in context_set_current() if the current context is NULL.

This commit is contained in:
Rico Schüller 2009-09-19 15:52:18 +02:00 committed by Alexandre Julliard
parent 3d0475eb4d
commit 8c414df17f
1 changed files with 1 additions and 1 deletions

View File

@ -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))