Mercurial > sdl-ios-xcode
diff src/render/opengles2/SDL_render_gles2.c @ 5254:7a963be087ef
Mostly fixed fullscreen mode on Mac OS X, and you can toggle it on and off.
There are still some problems with the ConvertNSRect() calculations when switching video modes, which causes wierd window positioning issues, and the fullscreen window is still minimized on exit.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Feb 2011 00:25:44 -0800 |
parents | 9c0c4d767ef6 |
children | 62d2bc792002 |
line wrap: on
line diff
--- a/src/render/opengles2/SDL_render_gles2.c Thu Feb 10 22:49:14 2011 -0800 +++ b/src/render/opengles2/SDL_render_gles2.c Fri Feb 11 00:25:44 2011 -0800 @@ -1085,27 +1085,16 @@ #define GL_NVIDIA_PLATFORM_BINARY_NV 0x890B -/* Used to re-create the window with OpenGL capability */ -extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags); - static SDL_Renderer * GLES2_CreateRenderer(SDL_Window *window, Uint32 flags) { SDL_Renderer *renderer; GLES2_DriverContext *rdata; - Uint32 window_flags; GLint nFormats; #ifndef ZUNE_HD GLboolean hasCompiler; #endif - window_flags = SDL_GetWindowFlags(window); - if (!(window_flags & SDL_WINDOW_OPENGL)) { - if (SDL_RecreateWindow(window, window_flags | SDL_WINDOW_OPENGL) < 0) { - return NULL; - } - } - /* Create the renderer struct */ renderer = (SDL_Renderer *)SDL_calloc(1, sizeof(SDL_Renderer)); if (!renderer) {