Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11video.c @ 4288:4ab46e81d08e SDL-1.2
Default value for SGI swap control GL attribute should be -1.
Explicitly try to set it if you want a different value. Different glX
implementations appear to have different defaults for this, and you can't
query them for the current value.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 10 Oct 2009 05:17:47 +0000 |
parents | 010efca83dfc |
children | 485868a1c283 |
comparison
equal
deleted
inserted
replaced
4287:0620847bf1a8 | 4288:4ab46e81d08e |
---|---|
120 } | 120 } |
121 SDL_memset(device->hidden, 0, (sizeof *device->hidden)); | 121 SDL_memset(device->hidden, 0, (sizeof *device->hidden)); |
122 SDL_memset(device->gl_data, 0, (sizeof *device->gl_data)); | 122 SDL_memset(device->gl_data, 0, (sizeof *device->gl_data)); |
123 | 123 |
124 #if SDL_VIDEO_OPENGL_GLX | 124 #if SDL_VIDEO_OPENGL_GLX |
125 device->gl_data->sgi_swap_interval = 1; | 125 device->gl_data->sgi_swap_interval = -1; |
126 #endif | 126 #endif |
127 | 127 |
128 /* Set the driver flags */ | 128 /* Set the driver flags */ |
129 device->handles_any_size = 1; | 129 device->handles_any_size = 1; |
130 | 130 |