comparison src/video/SDL_video.c @ 1737:eacc5bc01d1c

Implemented bug #5 Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Apr 2006 08:39:51 +0000
parents 3b2a92126f4d
children c121d94672cb 842b03d703c5
comparison
equal deleted inserted replaced
1736:3b2a92126f4d 1737:eacc5bc01d1c
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.accelerated = -1; /* not known, don't set */
236 video->gl_config.swap_control = -1; /* not known, don't set */ 237 video->gl_config.swap_control = -1; /* not known, don't set */
237 238
238 /* Initialize the video subsystem */ 239 /* Initialize the video subsystem */
239 SDL_memset(&vformat, 0, sizeof(vformat)); 240 SDL_memset(&vformat, 0, sizeof(vformat));
240 if ( video->VideoInit(video, &vformat) < 0 ) { 241 if ( video->VideoInit(video, &vformat) < 0 ) {
1473 video->gl_config.multisamplebuffers = value; 1474 video->gl_config.multisamplebuffers = value;
1474 break; 1475 break;
1475 case SDL_GL_MULTISAMPLESAMPLES: 1476 case SDL_GL_MULTISAMPLESAMPLES:
1476 video->gl_config.multisamplesamples = value; 1477 video->gl_config.multisamplesamples = value;
1477 break; 1478 break;
1479 case SDL_GL_ACCELERATED_VISUAL:
1480 video->gl_config.accelerated = value;
1481 break;
1478 case SDL_GL_SWAP_CONTROL: 1482 case SDL_GL_SWAP_CONTROL:
1479 video->gl_config.swap_control = value; 1483 video->gl_config.swap_control = value;
1480 break; 1484 break;
1481 default: 1485 default:
1482 SDL_SetError("Unknown OpenGL attribute"); 1486 SDL_SetError("Unknown OpenGL attribute");