Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/SDL_video.c Tue Dec 15 20:14:50 2009 +0000 +++ b/src/video/SDL_video.c Tue Dec 15 20:36:31 2009 +0000 @@ -239,7 +239,7 @@ _this->gl_config.multisamplebuffers = 0; _this->gl_config.multisamplesamples = 0; _this->gl_config.retained_backing = 1; - _this->gl_config.accelerated = -1; /* not known, don't set */ + _this->gl_config.accelerated = 1; _this->gl_config.major_version = 2; _this->gl_config.minor_version = 1; @@ -3274,7 +3274,7 @@ case SDL_GL_ACCELERATED_VISUAL: { /* FIXME: How do we get this information? */ - *value = (_this->gl_config.accelerated != 0); + *value = _this->gl_config.accelerated; return 0; } default: