Module: wine Branch: master Commit: 2d1e67ee6848dd6b06beee44fdc167c9de811da9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2d1e67ee6848dd6b06beee44fd...
Author: Ken Thomases ken@codeweavers.com Date: Wed Feb 19 16:13:48 2014 -0600
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.
---
dlls/wined3d/context.c | 7 ------- 1 file changed, 7 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 6cd04ca..7d63ca3 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -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;