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:
Ken Thomases 2014-02-19 16:13:48 -06:00 committed by Alexandre Julliard
parent 088dd7289c
commit 2d1e67ee68
1 changed files with 0 additions and 7 deletions

View File

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