Commit 2d1e67ee authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

wined3d: Remove redundant call to context_set_pixel_format() from context_update_window().

It calls context_set_gl_context() just after and that starts with a call to context_set_pixel_format(). Also, context_update_window() didn't do the right thing (fall back to swapchain backup DC) if context_set_pixel_format() fails.
parent 088dd728
......@@ -858,13 +858,6 @@ static void context_update_window(struct wined3d_context *context)
goto err;
}
if (!context_set_pixel_format(context->gl_info, context->hdc, context->pixel_format))
{
ERR("Failed to set pixel format %d on device context %p.\n",
context->pixel_format, context->hdc);
goto err;
}
context_set_gl_context(context);
return;
......
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