Roderick Colenbrander : wgl: Add aux buffers support to DescribePixelFormat .

Alexandre Julliard julliard at winehq.org
Mon Feb 25 06:51:03 CST 2008


Module: wine
Branch: master
Commit: 5374d623ce6ee7ab6913a3453ef64c3ac55320d8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5374d623ce6ee7ab6913a3453ef64c3ac55320d8

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Sat Feb 23 15:00:54 2008 +0000

wgl: Add aux buffers support to DescribePixelFormat.

---

 dlls/winex11.drv/opengl.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 1d0ada0..fa6fac8 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)) {




More information about the wine-cvs mailing list