Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gles.c @ 5145:c8e049de174c
Making the API simpler, the renderer present semantics are always having a backbuffer and then discarding it. This is best for hardware accelerated rendering.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Feb 2011 12:19:46 -0800 |
parents | 31e7f523ab3d |
children | ad50b3db78bd |
line wrap: on
line diff
--- a/src/video/SDL_renderer_gles.c Mon Jan 31 23:37:30 2011 -0800 +++ b/src/video/SDL_renderer_gles.c Tue Feb 01 12:19:46 2011 -0800 @@ -98,8 +98,7 @@ GLES_CreateRenderer, { "opengl_es", - (SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_PRESENTDISCARD | - SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED), + (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED), { /* OpenGL ES 1.x supported formats list */ SDL_PIXELFORMAT_RGBA4444, @@ -241,8 +240,7 @@ renderer->window = window; renderer->driverdata = data; - renderer->info.flags = - (SDL_RENDERER_PRESENTDISCARD | SDL_RENDERER_ACCELERATED); + renderer->info.flags = SDL_RENDERER_ACCELERATED; #if defined(__QNXNTO__) #if _NTO_VERSION<=641