diff src/video/x11/SDL_x11video.c @ 4268:d48035d857d3 SDL-1.2

Make SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) work with GLX_SGI_swap_control. Fixes Bugzilla #697.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 29 Sep 2009 13:50:33 +0000
parents 62849663f20a
children 010efca83dfc
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c	Tue Sep 29 13:42:33 2009 +0000
+++ b/src/video/x11/SDL_x11video.c	Tue Sep 29 13:50:33 2009 +0000
@@ -121,6 +121,8 @@
 		SDL_memset(device->hidden, 0, (sizeof *device->hidden));
 		SDL_memset(device->gl_data, 0, (sizeof *device->gl_data));
 
+		device->gl_data->sgi_swap_interval = 1;
+
 		/* Set the driver flags */
 		device->handles_any_size = 1;