Commit 6dd2ed2c authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winex11: Check pixel format flags in X11DRV_wglChoosePixelFormatARB.

The check was dropped in e392e0ac, leaving the dwFlags variable unused.
parent 87090965
......@@ -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();
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment