From: Sebastian Lackner Subject: wined3d: Fix context backup window handling. Message-Id: <174e9d76-4d6b-d421-c4d9-a327a5612254@fds-team.de> Date: Tue, 25 Jul 2017 22:35:22 +0200 Fixes a regression introduced in 548382e634c7c4df5fe0ae433cdfad916f7e5784. Signed-off-by: Sebastian Lackner --- 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