From 173e321ea6dbd4b8b49f06c31b88f8751c1f1396 Mon Sep 17 00:00:00 2001 From: Simon Voordouw Date: Tue, 17 Jul 2012 08:28:43 +0200 Subject: [PATCH] fix MESA_swap_control copy-pasta --- src/x11_opengl.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/x11_opengl.c b/src/x11_opengl.c index e39d858c..edcd69b6 100644 --- a/src/x11_opengl.c +++ b/src/x11_opengl.c @@ -546,11 +546,11 @@ int _glfwInitOpenGL(void) if (_glfwPlatformExtensionSupported("GLX_MESA_swap_control")) { - window->GLX.SwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC) + _glfwLibrary.GLX.SwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC) _glfwPlatformGetProcAddress("glXSwapIntervalMESA"); - if (window->GLX.SwapIntervalMESA) - window->GLX.MESA_swap_control = GL_TRUE; + if (_glfwLibrary.GLX.SwapIntervalMESA) + _glfwLibrary.GLX.MESA_swap_control = GL_TRUE; } if (_glfwPlatformExtensionSupported("GLX_SGIX_fbconfig")) @@ -731,12 +731,12 @@ void _glfwPlatformSwapInterval(int interval) window->X11.handle, interval); } - else if (window->GLX.MESA_swap_control) - window->GLX.SwapIntervalMESA(interval); - else if (window->GLX.SGI_swap_control) + else if (_glfwLibrary.GLX.MESA_swap_control) + _glfwLibrary.GLX.SwapIntervalMESA(interval); + else if (_glfwLibrary.GLX.SGI_swap_control) { if (interval > 0) - window->GLX.SwapIntervalSGI(interval); + _glfwLibrary.GLX.SwapIntervalSGI(interval); } }