Compare commits

...

2 commits

Author SHA1 Message Date
Aida Jonikienė
c6be0c24b3 Merge branch 'mr/opengl32-tlopo' into 'master'
opengl32: Add WGL_DOUBLE_BUFFER_ARB to the explicit sort list.

See merge request wine/wine!6513
2024-11-15 23:41:37 +00:00
Aida Jonikienė
b9a896a072 opengl32: Add WGL_DOUBLE_BUFFER_ARB to the explicit sort list.
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: 272c55ac25 ("opengl32: Add default implementation for wglChoosePixelFormatARB.")
2024-09-17 19:53:50 +03:00

View file

@ -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 );