commit c46f069468a385453a0ca00473cf31a43561f92c
parent aaef3fc74c92f7ea5f7ad9879671dcd2ee7a2d8d
Author: Brian Swetland <swetland@frotz.net>
Date: Mon, 14 Jan 2013 15:33:29 -0800
enable vsync
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/sdlglue.c b/sdlglue.c
@@ -112,6 +112,9 @@ int main(int argc, char **argv) {
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 2);
#endif
+ /* enable vsync */
+ SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL,1);
+
#if WITH_SDL2
if (!(w = SDL_CreateWindow("Test", 0, 0, c.width, c.height,
SDL_WINDOW_OPENGL)))