# HG changeset patch # User Sam Lantinga # Date 1254895840 0 # Node ID 010efca83dfcd42f9c50ac8f22b34f42ce6f0aaa # Parent 803eeeeaa8a0a53ae10ce2ec654c0e5d17ee0a20 Fixed building without OpenGL support diff -r 803eeeeaa8a0 -r 010efca83dfc src/video/x11/SDL_x11video.c --- 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;