From 825547f50e3f1d2fba06c971d0e4d781e255f692 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 22 May 2007 22:13:56 +0000 Subject: [PATCH] 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 --- src/video/x11/SDL_x11opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index 88652ce8c..36b31bbe9 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -224,7 +224,7 @@ X11_GL_InitExtensions(_THIS) } /* 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"); }