Mercurial > sdl-ios-xcode
diff src/video/SDL_video.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 | f638ded38b8a |
line wrap: on
line diff
--- a/src/video/SDL_video.c Tue Dec 15 20:36:31 2009 +0000 +++ b/src/video/SDL_video.c Tue Dec 15 20:53:09 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; + _this->gl_config.accelerated = -1; /* accelerated or not, both are fine */ _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; + *value = (_this->gl_config.accelerated != 0); return 0; } default: