wined3d: Fix context backup window handling.

Sebastian Lackner sebastian at fds-team.de
Tue Jul 25 15:35:22 CDT 2017


Fixes a regression introduced in 548382e634c7c4df5fe0ae433cdfad916f7e5784.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 dlls/wined3d/context.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index f9c95ba86ce..5b8e022c1e9 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1102,7 +1102,7 @@ static BOOL context_set_pixel_format(struct wined3d_context *context, HDC dc, BO
     if (dc == context->hdc && context->hdc_is_private && context->hdc_has_format)
         return TRUE;
 
-    if (dc == context->hdc && !context->hdc_is_private && WindowFromDC(dc) != context->win_handle)
+    if (dc == context->hdc && !private && WindowFromDC(dc) != context->win_handle)
         return FALSE;
 
     current = gl_info->gl_ops.wgl.p_wglGetPixelFormat(dc);
-- 
2.13.1



More information about the wine-patches mailing list