src/video/uikit/SDL_uikitopengles.m
changeset 7424 1644ff584b17
parent 7423 dfe7ad02f008
child 7425 e918739b115e
equal deleted inserted replaced
7423:dfe7ad02f008 7424:1644ff584b17
   105     SDL_DisplayModeData *displaymodedata = display->current_mode.driverdata;
   105     SDL_DisplayModeData *displaymodedata = display->current_mode.driverdata;
   106     UIWindow *uiwindow = data->uiwindow;
   106     UIWindow *uiwindow = data->uiwindow;
   107     EAGLSharegroup *share_group = nil;
   107     EAGLSharegroup *share_group = nil;
   108 
   108 
   109     if (_this->gl_config.share_with_current_context) {
   109     if (_this->gl_config.share_with_current_context) {
   110         share_group = [((SDL_uikitopenglview *) SDL_GL_GetCurrentContext() sharegroup];
   110         share_group = [((SDL_uikitopenglview *) SDL_GL_GetCurrentContext()) sharegroup];
   111     }
   111     }
   112 
   112 
   113     /* construct our view, passing in SDL's OpenGL configuration data */
   113     /* construct our view, passing in SDL's OpenGL configuration data */
   114     CGRect frame;
   114     CGRect frame;
   115     if (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS)) {
   115     if (window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_BORDERLESS)) {