From: Rémi Bernon rbernon@codeweavers.com
The llvmpipe formats with 8 alpha bits are all "onscreen" and have bogus inconsistent depth between their config and visual which cause BadMatch errors when flushing, including with PBuffers. Offscreen formats have only 2 alpha bits, so relax the tests so they work on the CI. --- dlls/opengl32/tests/opengl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c index 4443945c8c6..10d4e9a491f 100644 --- a/dlls/opengl32/tests/opengl.c +++ b/dlls/opengl32/tests/opengl.c @@ -1539,7 +1539,7 @@ static void test_bitmap_rendering( BOOL use_dib ) ok( ret == count, "got %d\n", ret );
if ((pfd.dwFlags & PFD_DRAW_TO_BITMAP) && (pfd.dwFlags & PFD_SUPPORT_OPENGL) && - pfd.cColorBits == bpp && pfd.cAlphaBits == 8) + pfd.cColorBits == bpp && pfd.cAlphaBits > 0) { ret = SetPixelFormat( hdc, i, &pfd ); if (pixel_format) ok( !ret, "SetPixelFormat succeeded\n" ); @@ -1825,7 +1825,7 @@ static void test_d3dkmt_rendering(void) ok( ret == count, "got %d\n", ret );
if ((pfd.dwFlags & PFD_DRAW_TO_BITMAP) && (pfd.dwFlags & PFD_SUPPORT_OPENGL) && - pfd.cColorBits == 32 && pfd.cAlphaBits == 8) + pfd.cColorBits == 32 && pfd.cAlphaBits > 0) { ret = SetPixelFormat( desc.hDc, i, &pfd ); if (pixel_format) ok( !ret, "SetPixelFormat succeeded\n" );