From 088dd7289cf031cec70005bb4e0d8e815699d0ed Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Wed, 19 Feb 2014 16:13:29 -0600 Subject: [PATCH] wined3d: Call context_enter() before context_update_window() so it records the proper restore state. --- 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 c835414ae6b..6cd04cada96 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -3000,9 +3000,9 @@ struct wined3d_context *context_acquire(const struct wined3d_device *device, str context = swapchain_get_context(device->swapchains[0]); } + context_enter(context); context_update_window(context); context_setup_target(context, target); - context_enter(context); if (!context->valid) return context; if (context != current_context)