wined3d: Call context_enter() before context_update_window() so it records the proper restore state.

This commit is contained in:
Ken Thomases 2014-02-19 16:13:29 -06:00 committed by Alexandre Julliard
parent de0c46fd52
commit 088dd7289c
1 changed files with 1 additions and 1 deletions

View File

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