Commit 2b58d2dc authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

wgl: Select bitmap capable formats when PFD_DRAW_TO_BITMAP is requested by the caller.

parent b5a62756
......@@ -1158,6 +1158,14 @@ int CDECL X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
continue;
}
/* Only use bitmap capable for formats for bitmap rendering.
* See get_formats for more info. */
if( (ppfd->dwFlags & PFD_DRAW_TO_BITMAP) != (fmt->dwFlags & PFD_DRAW_TO_BITMAP))
{
TRACE("PFD_DRAW_TO_BITMAP mismatch for iPixelFormat=%d\n", i+1);
continue;
}
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DOUBLEBUFFER, &value);
if (value) dwFlags |= PFD_DOUBLEBUFFER;
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_STEREO, &value);
......
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