Commit 308da631 authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

winex11: Set proper pixel format flags.

parent 04d38338
...@@ -1233,11 +1233,21 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev, ...@@ -1233,11 +1233,21 @@ 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; ppfd->dwFlags = PFD_SUPPORT_OPENGL;
/* Now the flags extracted from the Visual */ /* Now the flags extracted from the Visual */
wine_tsx11_lock(); wine_tsx11_lock();
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_X_RENDERABLE, &value);
if(value)
ppfd->dwFlags |= PFD_SUPPORT_GDI;
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DRAWABLE_TYPE, &value);
if(value & GLX_WINDOW_BIT)
ppfd->dwFlags |= PFD_DRAW_TO_WINDOW;
if(value & GLX_PIXMAP_BIT)
ppfd->dwFlags |= PFD_DRAW_TO_BITMAP;
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_CONFIG_CAVEAT, &value); pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_CONFIG_CAVEAT, &value);
if(value == GLX_SLOW_CONFIG) if(value == GLX_SLOW_CONFIG)
ppfd->dwFlags |= PFD_GENERIC_ACCELERATED; ppfd->dwFlags |= PFD_GENERIC_ACCELERATED;
......
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