From 418bc1014706f2f1997d1b91251f96da0fa4a3a5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 10 Oct 2009 05:17:47 +0000 Subject: [PATCH] Default value for SGI swap control GL attribute should be -1. Explicitly try to set it if you want a different value. Different glX implementations appear to have different defaults for this, and you can't query them for the current value. --HG-- branch : SDL-1.2 --- src/video/x11/SDL_x11video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index cbdf10dfa..e22839280 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -122,7 +122,7 @@ static SDL_VideoDevice *X11_CreateDevice(int devindex) SDL_memset(device->gl_data, 0, (sizeof *device->gl_data)); #if SDL_VIDEO_OPENGL_GLX - device->gl_data->sgi_swap_interval = 1; + device->gl_data->sgi_swap_interval = -1; #endif /* Set the driver flags */