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.
This commit is contained in:
parent
088dd7289c
commit
2d1e67ee68
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue