Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Date: Wed, 23 May 2007 00:39:47 +0300
Browse files Browse the repository at this point in the history
From: "Eyal Lotem"
To: "SDL Mailing List" <sdl@lists.libsdl.org>
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
  • Loading branch information
icculus committed May 22, 2007
1 parent abf19c2 commit 825547f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -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");
}
Expand Down

0 comments on commit 825547f

Please sign in to comment.