changeset 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 803eeeeaa8a0
children 42ad751f3192
files src/video/x11/SDL_x11video.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;