wined3d: Make context_update_window() just mark the GL context as needing to be set rather than setting it.

This commit is contained in:
Ken Thomases 2014-02-19 16:14:24 -06:00 committed by Alexandre Julliard
parent baa85a097a
commit b8569d2f30
1 changed files with 1 additions and 2 deletions

View File

@ -852,6 +852,7 @@ static void context_update_window(struct wined3d_context *context)
context->valid = 1;
context->win_handle = context->swapchain->win_handle;
context->needs_set = 1;
if (!(context->hdc = GetDC(context->win_handle)))
{
@ -859,8 +860,6 @@ static void context_update_window(struct wined3d_context *context)
goto err;
}
context_set_gl_context(context);
return;
err: