# HG changeset patch # User Ryan C. Gordon # Date 1255151867 0 # Node ID 4ab46e81d08e672cb0648f06797d94109f244b61 # Parent 0620847bf1a8f1d90d8dad2266e212c020f66a98 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. diff -r 0620847bf1a8 -r 4ab46e81d08e src/video/x11/SDL_x11video.c --- 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 */