Roderick Colenbrander : wgl: Enable WGL_EXT_swap_control by default even when the GLX version isn' t there.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 30 08:55:58 CDT 2007


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

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Sat Jul 28 00:32:32 2007 +0200

wgl: Enable WGL_EXT_swap_control by default even when the GLX version isn't there.

---

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

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index c26e509..6ceb635 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -3037,8 +3037,9 @@ static void X11DRV_WineGL_LoadExtensions(void)
 
     register_extension(&WGL_EXT_extensions_string);
 
-    if (glxRequireExtension("GLX_SGI_swap_control"))
-        register_extension(&WGL_EXT_swap_control);
+    /* Load this extension even when it isn't backed by a GLX extension because it is has been around for ages.
+     * Games like Call of Duty and K.O.T.O.R. rely on it. Further our emulation is good enough. */
+    register_extension(&WGL_EXT_swap_control);
 
     /* The OpenGL extension GL_NV_vertex_array_range adds wgl/glX functions which aren't exported as 'real' wgl/glX extensions. */
     if(strstr(WineGLInfo.glExtensions, "GL_NV_vertex_array_range") != NULL)




More information about the wine-cvs mailing list