comparison src/video/x11/SDL_x11opengl.c @ 3571:19691cebb866

Default to allow either accelerated or not
author Sam Lantinga <slouken@libsdl.org>
date Tue, 15 Dec 2009 20:53:09 +0000
parents 7812d3e9564e
children 64ce267332c6
comparison
equal deleted inserted replaced
3570:7812d3e9564e 3571:19691cebb866
357 if (_this->gl_config.multisamplesamples) { 357 if (_this->gl_config.multisamplesamples) {
358 attribs[i++] = GLX_SAMPLES_ARB; 358 attribs[i++] = GLX_SAMPLES_ARB;
359 attribs[i++] = _this->gl_config.multisamplesamples; 359 attribs[i++] = _this->gl_config.multisamplesamples;
360 } 360 }
361 361
362 if (_this->gl_data->HAS_GLX_EXT_visual_rating) { 362 if (_this->gl_config.accelerated >= 0 &&
363 _this->gl_data->HAS_GLX_EXT_visual_rating) {
363 attribs[i++] = GLX_VISUAL_CAVEAT_EXT; 364 attribs[i++] = GLX_VISUAL_CAVEAT_EXT;
364 attribs[i++] = _this->gl_config.accelerated ? GLX_NONE_EXT : 365 attribs[i++] = _this->gl_config.accelerated ? GLX_NONE_EXT :
365 GLX_SLOW_VISUAL_EXT; 366 GLX_SLOW_VISUAL_EXT;
366 } 367 }
367 368