comparison src/video/SDL_video.c @ 1736:3b2a92126f4d

Implemented bug #2, 117: Date: Mon, 21 Mar 2005 12:06:14 +0100 From: Per Inge Mathisen Subject: Re: [SDL] Outstanding patches? The patch adds support for setting SDL_GL_SWAP_CONTROL to Windows and X11. In Windows you can also query this enum to check that it is working, or see what the default is - such functionality does not exist in GLX. For more information on the standards implemented: http://oss.sgi.com/projects/ogl-sample/registry/SGI/swap_control.txt http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Apr 2006 07:59:16 +0000
parents 8d9bb0cf2c2a
children eacc5bc01d1c
comparison
equal deleted inserted replaced
1652:dc219ba4cf45 1736:3b2a92126f4d
231 video->gl_config.accum_blue_size = 0; 231 video->gl_config.accum_blue_size = 0;
232 video->gl_config.accum_alpha_size = 0; 232 video->gl_config.accum_alpha_size = 0;
233 video->gl_config.stereo = 0; 233 video->gl_config.stereo = 0;
234 video->gl_config.multisamplebuffers = 0; 234 video->gl_config.multisamplebuffers = 0;
235 video->gl_config.multisamplesamples = 0; 235 video->gl_config.multisamplesamples = 0;
236 video->gl_config.swap_control = -1; /* not known, don't set */
236 237
237 /* Initialize the video subsystem */ 238 /* Initialize the video subsystem */
238 SDL_memset(&vformat, 0, sizeof(vformat)); 239 SDL_memset(&vformat, 0, sizeof(vformat));
239 if ( video->VideoInit(video, &vformat) < 0 ) { 240 if ( video->VideoInit(video, &vformat) < 0 ) {
240 SDL_VideoQuit(); 241 SDL_VideoQuit();
1472 video->gl_config.multisamplebuffers = value; 1473 video->gl_config.multisamplebuffers = value;
1473 break; 1474 break;
1474 case SDL_GL_MULTISAMPLESAMPLES: 1475 case SDL_GL_MULTISAMPLESAMPLES:
1475 video->gl_config.multisamplesamples = value; 1476 video->gl_config.multisamplesamples = value;
1476 break; 1477 break;
1478 case SDL_GL_SWAP_CONTROL:
1479 video->gl_config.swap_control = value;
1480 break;
1477 default: 1481 default:
1478 SDL_SetError("Unknown OpenGL attribute"); 1482 SDL_SetError("Unknown OpenGL attribute");
1479 retval = -1; 1483 retval = -1;
1480 break; 1484 break;
1481 } 1485 }