From 00c96d03422497a136acc6090e07a9a17d19ea08 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 7 Oct 2009 06:10:40 +0000 Subject: [PATCH] Fixed building without OpenGL support --HG-- branch : SDL-1.2 --- src/video/x11/SDL_x11video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index 7484c5f7a..cbdf10dfa 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -121,7 +121,9 @@ static SDL_VideoDevice *X11_CreateDevice(int devindex) 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;