diff src/video/x11/SDL_x11video.c @ 4278:010efca83dfc SDL-1.2

Fixed building without OpenGL support
author Sam Lantinga <slouken@libsdl.org>
date Wed, 07 Oct 2009 06:10:40 +0000
parents d48035d857d3
children 4ab46e81d08e
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c	Sun Oct 04 22:31:25 2009 +0000
+++ b/src/video/x11/SDL_x11video.c	Wed Oct 07 06:10:40 2009 +0000
@@ -121,7 +121,9 @@
 		SDL_memset(device->hidden, 0, (sizeof *device->hidden));
 		SDL_memset(device->gl_data, 0, (sizeof *device->gl_data));
 
+#if SDL_VIDEO_OPENGL_GLX
 		device->gl_data->sgi_swap_interval = 1;
+#endif
 
 		/* Set the driver flags */
 		device->handles_any_size = 1;