# HG changeset patch # User Ryan C. Gordon # Date 1179872036 0 # Node ID 12bcd4fd2606c6e53bb06b85a274b5c0dc1770e6 # Parent a76e8b9f3d2eca6bb960143b59ed6d97bfedc98a Date: Wed, 23 May 2007 00:39:47 +0300 From: "Eyal Lotem" To: "SDL Mailing List" Subject: [SDL] Bug in GL_SWAP_CONTROL extension name. The checked extension name is incorrect. The attached patch fixes it to the correct name. I don't think that under any setup, this extension name was ever correct, which is why its not OR'd against the old check. This fixes the "tear effect" (vsync problems) I had here with nVidia GLX drivers. Eyal diff -r a76e8b9f3d2e -r 12bcd4fd2606 src/video/x11/SDL_x11opengl.c --- a/src/video/x11/SDL_x11opengl.c Wed Apr 04 10:41:00 2007 +0000 +++ b/src/video/x11/SDL_x11opengl.c Tue May 22 22:13:56 2007 +0000 @@ -224,7 +224,7 @@ } /* Check for SGI_swap_control */ - if (HasExtension("SGI_swap_control", extensions)) { + if (HasExtension("GLX_SGI_swap_control", extensions)) { _this->gl_data->glXSwapIntervalSGI = (int (*)(int)) X11_GL_GetProcAddress(_this, "glXSwapIntervalSGI"); }