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.
This commit is contained in:
Peter Beutner 2005-11-18 12:06:45 +00:00 committed by Alexandre Julliard
parent 6414eb6da3
commit 008298455f
1 changed files with 6 additions and 2 deletions

View File

@ -358,11 +358,15 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
ppfd->nVersion = 1;
/* These flags are always the same... */
ppfd->dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_GENERIC_ACCELERATED;
/* Now the flags extraced from the Visual */
ppfd->dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
/* Now the flags extracted from the Visual */
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_STEREO, &value); if (value) ppfd->dwFlags |= PFD_STEREO;