Commit 775a2d5f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winex11: Retrieve the pixel format from win32u for normal windows in wglGetPixelFormat().

parent 463a1137
......@@ -1687,8 +1687,12 @@ static int glxdrv_wglGetPixelFormat( HDC hdc )
{
struct gl_drawable *gl;
int ret = 0;
HWND hwnd;
if ((gl = get_gl_drawable( NtUserWindowFromDC( hdc ), hdc )))
if ((hwnd = NtUserWindowFromDC( hdc )))
return win32u_get_window_pixel_format( hwnd );
if ((gl = get_gl_drawable( NULL, hdc )))
{
ret = pixel_format_index( gl->format );
/* Offscreen formats can't be used with traditional WGL calls.
......
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