comparison src/video/x11/SDL_x11video.c @ 4268:d48035d857d3 SDL-1.2

Make SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) work with GLX_SGI_swap_control. Fixes Bugzilla #697.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 29 Sep 2009 13:50:33 +0000
parents 62849663f20a
children 010efca83dfc
comparison
equal deleted inserted replaced
4267:27f972dd5aff 4268:d48035d857d3
118 X11_DeleteDevice(device); /* calls SDL_X11_UnloadSymbols(). */ 118 X11_DeleteDevice(device); /* calls SDL_X11_UnloadSymbols(). */
119 return(0); 119 return(0);
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
124 device->gl_data->sgi_swap_interval = 1;
123 125
124 /* Set the driver flags */ 126 /* Set the driver flags */
125 device->handles_any_size = 1; 127 device->handles_any_size = 1;
126 128
127 /* Set the function pointers */ 129 /* Set the function pointers */