src/video/uikit/SDL_uikitopengles.m
changeset 10690 23a825f341e6
parent 10143 14719cd1bde2
child 10721 88943d97bf00
equal deleted inserted replaced
10689:69d6c1c7a2bf 10690:23a825f341e6
   109         return SDL_SetError("iOS GL Load Library just here for compatibility");
   109         return SDL_SetError("iOS GL Load Library just here for compatibility");
   110     }
   110     }
   111     return 0;
   111     return 0;
   112 }
   112 }
   113 
   113 
   114 void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
   114 int UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
   115 {
   115 {
   116     @autoreleasepool {
   116     @autoreleasepool {
   117         SDLEAGLContext *context = (__bridge SDLEAGLContext *) SDL_GL_GetCurrentContext();
   117         SDLEAGLContext *context = (__bridge SDLEAGLContext *) SDL_GL_GetCurrentContext();
   118 
   118 
   119 #if SDL_POWER_UIKIT
   119 #if SDL_POWER_UIKIT
   125 
   125 
   126         /* You need to pump events in order for the OS to make changes visible.
   126         /* You need to pump events in order for the OS to make changes visible.
   127          * We don't pump events here because we don't want iOS application events
   127          * We don't pump events here because we don't want iOS application events
   128          * (low memory, terminate, etc.) to happen inside low level rendering. */
   128          * (low memory, terminate, etc.) to happen inside low level rendering. */
   129     }
   129     }
       
   130     return 0;
   130 }
   131 }
   131 
   132 
   132 SDL_GLContext
   133 SDL_GLContext
   133 UIKit_GL_CreateContext(_THIS, SDL_Window * window)
   134 UIKit_GL_CreateContext(_THIS, SDL_Window * window)
   134 {
   135 {