Commit b8569d2f authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

wined3d: Make context_update_window() just mark the GL context as needing to be…

wined3d: Make context_update_window() just mark the GL context as needing to be set rather than setting it.
parent baa85a09
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment