Commit 208a40cd authored by Torge Matthies's avatar Torge Matthies Committed by Alexandre Julliard

winex11.drv: Set PFD_SUPPORT_COMPOSITION for hardware-accelerated pixel formats.

parent a5754a4f
...@@ -1589,6 +1589,9 @@ static int describe_pixel_format( int iPixelFormat, PIXELFORMATDESCRIPTOR *ppfd, ...@@ -1589,6 +1589,9 @@ static int describe_pixel_format( int iPixelFormat, PIXELFORMATDESCRIPTOR *ppfd,
* We only set PFD_GENERIC_FORMAT on bitmap formats (see get_formats) as that's what ATI and Nvidia Windows drivers do */ * We only set PFD_GENERIC_FORMAT on bitmap formats (see get_formats) as that's what ATI and Nvidia Windows drivers do */
ppfd->dwFlags |= fmt->dwFlags & (PFD_GENERIC_FORMAT | PFD_GENERIC_ACCELERATED); ppfd->dwFlags |= fmt->dwFlags & (PFD_GENERIC_FORMAT | PFD_GENERIC_ACCELERATED);
if (!(ppfd->dwFlags & PFD_GENERIC_FORMAT))
ppfd->dwFlags |= PFD_SUPPORT_COMPOSITION;
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DOUBLEBUFFER, &value); pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DOUBLEBUFFER, &value);
if (value) { if (value) {
ppfd->dwFlags |= PFD_DOUBLEBUFFER; ppfd->dwFlags |= PFD_DOUBLEBUFFER;
......
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