1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winex11: Check pixel format flags in X11DRV_wglChoosePixelFormatARB.

The check was dropped in e392e0ac28,
leaving the dwFlags variable unused.
This commit is contained in:
Rémi Bernon 2022-12-16 11:28:32 +01:00 committed by Alexandre Julliard
parent 87090965ff
commit 6dd2ed2c7d
2 changed files with 3 additions and 1 deletions

View file

@ -1891,7 +1891,7 @@ static void test_wglChoosePixelFormatARB(HDC hdc)
ok(format.dwFlags & PFD_DRAW_TO_WINDOW, "got dwFlags %#lx\n", format.dwFlags);
ok(format.dwFlags & PFD_SUPPORT_OPENGL, "got dwFlags %#lx\n", format.dwFlags);
todo_wine ok(format.dwFlags & PFD_SUPPORT_GDI, "got dwFlags %#lx\n", format.dwFlags);
ok(format.dwFlags & PFD_SUPPORT_GDI, "got dwFlags %#lx\n", format.dwFlags);
winetest_pop_context();
}

View file

@ -2638,6 +2638,8 @@ static BOOL X11DRV_wglChoosePixelFormatARB( HDC hdc, const int *piAttribIList, c
if (i == nb_pixel_formats)
continue;
if ((pixel_formats[i].dwFlags & dwFlags) != dwFlags)
continue;
format = &formats[format_count];
format->format = i + 1;