Commit 00829845 authored by Peter Beutner's avatar Peter Beutner Committed by Alexandre Julliard

Fix wrong use of the PFD_GENERIC_ACCELERATED flag. It indicates that

the selected pixel format lacks full hardware acceleration and only a few parts are accelerated. So don't always set it but only if the X server actually reports that the selected pixel format is not fully accelerated.
parent 6414eb6d
...@@ -358,11 +358,15 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev, ...@@ -358,11 +358,15 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
ppfd->nVersion = 1; ppfd->nVersion = 1;
/* These flags are always the same... */ /* These flags are always the same... */
ppfd->dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_GENERIC_ACCELERATED; ppfd->dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
/* Now the flags extraced from the Visual */ /* Now the flags extracted from the Visual */
wine_tsx11_lock(); wine_tsx11_lock();
pglXGetFBConfigAttrib(gdi_display, cur, GLX_CONFIG_CAVEAT, &value);
if(value == GLX_SLOW_CONFIG)
ppfd->dwFlags |= PFD_GENERIC_ACCELERATED;
pglXGetFBConfigAttrib(gdi_display, cur, GLX_DOUBLEBUFFER, &value); if (value) ppfd->dwFlags |= PFD_DOUBLEBUFFER; pglXGetFBConfigAttrib(gdi_display, cur, GLX_DOUBLEBUFFER, &value); if (value) ppfd->dwFlags |= PFD_DOUBLEBUFFER;
pglXGetFBConfigAttrib(gdi_display, cur, GLX_STEREO, &value); if (value) ppfd->dwFlags |= PFD_STEREO; pglXGetFBConfigAttrib(gdi_display, cur, GLX_STEREO, &value); if (value) ppfd->dwFlags |= PFD_STEREO;
......
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