From: Aida JonikienÄ— <aidas957(a)gmail.com> The Legend of Pirates Online expects the formats without WGL_DOUBLE_BUFFER_ARB to be listed first in wglChoosePixelFormatARB() (otherwise it goes into a special wglBindTexImageARB() path which causes blank rendering on both winex11 and winewayland) which was the old winex11 behavior that this change now matches. Fixes: 272c55ac257 ("opengl32: Add default implementation for wglChoosePixelFormatARB.") --- dlls/opengl32/wgl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index c6414054ff5..5b176291e70 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -754,6 +754,7 @@ BOOL WINAPI wglChoosePixelFormatARB( HDC hdc, const int *attribs_int, const FLOA ctx.attribs[2 * i + 1] ); /* Some attributes we always want to sort by (values don't matter for sorting) */ + compare_formats_ctx_set_attrib( &ctx, WGL_DOUBLE_BUFFER_ARB, 0 ); compare_formats_ctx_set_attrib( &ctx, WGL_ACCELERATION_ARB, 0 ); compare_formats_ctx_set_attrib( &ctx, WGL_COLOR_BITS_ARB, 0 ); compare_formats_ctx_set_attrib( &ctx, WGL_ACCUM_BITS_ARB, 0 ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6513