From: Rémi Bernon <rbernon@codeweavers.com> This may happen if HDC is from a Pbuffer, and context was created separately. Let's not be restrictive if host GL allows it. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59555 --- dlls/win32u/opengl.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dlls/win32u/opengl.c b/dlls/win32u/opengl.c index 3b8db3ca291..3d03b41fc24 100644 --- a/dlls/win32u/opengl.c +++ b/dlls/win32u/opengl.c @@ -1930,12 +1930,6 @@ static BOOL win32u_wglMakeContextCurrentARB( HDC draw_hdc, HDC read_hdc, HGLRC c else RtlSetLastWin32Error( ERROR_INVALID_HANDLE ); return FALSE; } - if (context->format != format) - { - WARN( "Mismatched draw_hdc %p format %u, context %p format %u\n", draw_hdc, format, context, context->format ); - RtlSetLastWin32Error( ERROR_INVALID_PIXEL_FORMAT ); - return FALSE; - } created = create_memory_pbuffer( draw_hdc ); if (!context_sync_drawables( context, draw_hdc, read_hdc )) return FALSE; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10914