From 8c414df17f57840e0687db1ece53857e4e791d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rico=20Sch=C3=BCller?= Date: Sat, 19 Sep 2009 15:52:18 +0200 Subject: [PATCH] wined3d: Don't call wglMakeCurrent(NULL, NULL) in context_set_current() if the current context is NULL. --- dlls/wined3d/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index c4cd43659f5..28cd4a090cb 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -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))