Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed building without OpenGL support
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+2
−0
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; |
|
|