Charles Davis : winex11.drv: Actually query the swap method attribute.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 12 09:47:45 CST 2016


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

Author: Charles Davis <cdavis5x at gmail.com>
Date:   Fri Feb 12 02:01:42 2016 -0700

winex11.drv: Actually query the swap method attribute.

Signed-off-by: Charles Davis <cdavis5x at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winex11.drv/opengl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 3d0bd24..704d62a 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -2738,7 +2738,7 @@ static BOOL X11DRV_wglGetPixelFormatAttribivARB( HDC hdc, int iPixelFormat, int
             case WGL_SWAP_METHOD_ARB:
                 if (has_swap_method)
                 {
-                    hTest = pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DRAWABLE_TYPE, &tmp);
+                    hTest = pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_SWAP_METHOD_OML, &tmp);
                     if (hTest) goto get_error;
                     switch (tmp)
                     {




More information about the wine-cvs mailing list