changeset 4288:4ab46e81d08e SDL-1.2

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.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 10 Oct 2009 05:17:47 +0000
parents 0620847bf1a8
children 91c458013850
files src/video/x11/SDL_x11video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c	Sat Oct 10 02:11:07 2009 +0000
+++ b/src/video/x11/SDL_x11video.c	Sat Oct 10 05:17:47 2009 +0000
@@ -122,7 +122,7 @@
 		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 */