comparison src/video/win32/SDL_win32opengl.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 f7b03b6838cb
comparison
equal deleted inserted replaced
3570:7812d3e9564e 3571:19691cebb866
467 if (_this->gl_config.multisamplesamples) { 467 if (_this->gl_config.multisamplesamples) {
468 *iAttr++ = WGL_SAMPLES_ARB; 468 *iAttr++ = WGL_SAMPLES_ARB;
469 *iAttr++ = _this->gl_config.multisamplesamples; 469 *iAttr++ = _this->gl_config.multisamplesamples;
470 } 470 }
471 471
472 *iAttr++ = WGL_ACCELERATION_ARB; 472 if (_this->gl_config.accelerated >= 0) {
473 *iAttr++ = (_this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB : 473 *iAttr++ = WGL_ACCELERATION_ARB;
474 WGL_NO_ACCELERATION_ARB); 474 *iAttr++ =
475 (_this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB :
476 WGL_NO_ACCELERATION_ARB);
477 }
475 478
476 *iAttr = 0; 479 *iAttr = 0;
477 480
478 /* Choose and set the closest available pixel format */ 481 /* Choose and set the closest available pixel format */
479 pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs); 482 pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs);