From 5374d623ce6ee7ab6913a3453ef64c3ac55320d8 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Sat, 23 Feb 2008 15:00:54 +0000 Subject: [PATCH] wgl: Add aux buffers support to DescribePixelFormat. --- dlls/winex11.drv/opengl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 1d0ada04230..fa6fac8d646 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1367,6 +1367,10 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev, ppfd->cAccumBlueBits = bb; ppfd->cAccumAlphaBits = ab; + /* Aux bits */ + pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_AUX_BUFFERS, &value); + ppfd->cAuxBuffers = value; + /* Depth bits */ pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DEPTH_SIZE, &value); ppfd->cDepthBits = value; @@ -1377,8 +1381,6 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev, wine_tsx11_unlock(); - /* Aux : to do ... */ - ppfd->iLayerType = PFD_MAIN_PLANE; if (TRACE_ON(opengl)) { -- 2.11.4.GIT