Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32opengl.c @ 3570:7812d3e9564e
OpenGL hardware acceleration defaults on
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 15 Dec 2009 20:36:31 +0000 |
parents | f43c8f688f77 |
children | 19691cebb866 |
comparison
equal
deleted
inserted
replaced
3569:7f743e9b0b5b | 3570:7812d3e9564e |
---|---|
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 if (_this->gl_config.accelerated >= 0) { | 472 *iAttr++ = WGL_ACCELERATION_ARB; |
473 *iAttr++ = WGL_ACCELERATION_ARB; | 473 *iAttr++ = (_this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB : |
474 *iAttr++ = | 474 WGL_NO_ACCELERATION_ARB); |
475 (_this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB : | |
476 WGL_NO_ACCELERATION_ARB); | |
477 } | |
478 | 475 |
479 *iAttr = 0; | 476 *iAttr = 0; |
480 | 477 |
481 /* Choose and set the closest available pixel format */ | 478 /* Choose and set the closest available pixel format */ |
482 pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs); | 479 pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs); |