From 5175e8d22a745c4dc6627b098056a67024e9b3c6 Mon Sep 17 00:00:00 2001 From: Holmes Futrell Date: Fri, 18 Jul 2008 18:05:54 +0000 Subject: [PATCH] Added SDL_GL_RETAINED_BACKING to SDL_GLattr enum. Retained backing means the memory for color buffers, depth buffers, etc cannot be overwritten by other applications between frames. The default for this setting is 'on'. I wanted to add this because turning retained backing off on iPhone dramatically increases performance. --- include/SDL_video.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/SDL_video.h b/include/SDL_video.h index 8a3c276f6..58103dfa3 100644 --- a/include/SDL_video.h +++ b/include/SDL_video.h @@ -268,7 +268,8 @@ typedef enum SDL_GL_STEREO, SDL_GL_MULTISAMPLEBUFFERS, SDL_GL_MULTISAMPLESAMPLES, - SDL_GL_ACCELERATED_VISUAL + SDL_GL_ACCELERATED_VISUAL, + SDL_GL_RETAINED_BACKING } SDL_GLattr;