comparison src/video/SDL_video.c @ 3570:7812d3e9564e

OpenGL hardware acceleration defaults on
author Sam Lantinga <slouken@libsdl.org>
date Tue, 15 Dec 2009 20:36:31 +0000
parents 3ad09fdbfcb0
children 19691cebb866
comparison
equal deleted inserted replaced
3569:7f743e9b0b5b 3570:7812d3e9564e
237 _this->gl_config.accum_alpha_size = 0; 237 _this->gl_config.accum_alpha_size = 0;
238 _this->gl_config.stereo = 0; 238 _this->gl_config.stereo = 0;
239 _this->gl_config.multisamplebuffers = 0; 239 _this->gl_config.multisamplebuffers = 0;
240 _this->gl_config.multisamplesamples = 0; 240 _this->gl_config.multisamplesamples = 0;
241 _this->gl_config.retained_backing = 1; 241 _this->gl_config.retained_backing = 1;
242 _this->gl_config.accelerated = -1; /* not known, don't set */ 242 _this->gl_config.accelerated = 1;
243 _this->gl_config.major_version = 2; 243 _this->gl_config.major_version = 2;
244 _this->gl_config.minor_version = 1; 244 _this->gl_config.minor_version = 1;
245 245
246 /* Initialize the video subsystem */ 246 /* Initialize the video subsystem */
247 if (_this->VideoInit(_this) < 0) { 247 if (_this->VideoInit(_this) < 0) {
3272 return 0; 3272 return 0;
3273 } 3273 }
3274 case SDL_GL_ACCELERATED_VISUAL: 3274 case SDL_GL_ACCELERATED_VISUAL:
3275 { 3275 {
3276 /* FIXME: How do we get this information? */ 3276 /* FIXME: How do we get this information? */
3277 *value = (_this->gl_config.accelerated != 0); 3277 *value = _this->gl_config.accelerated;
3278 return 0; 3278 return 0;
3279 } 3279 }
3280 default: 3280 default:
3281 SDL_SetError("Unknown OpenGL attribute"); 3281 SDL_SetError("Unknown OpenGL attribute");
3282 return -1; 3282 return -1;