src/video/uikit/SDL_uikitopengles.m
changeset 6179 a83eb92704f3
parent 6138 4c64952a58fb
child 6267 ed2cf4669e55
equal deleted inserted replaced
6178:1fc633857667 6179:a83eb92704f3
   113                                     bBits: _this->gl_config.blue_size
   113                                     bBits: _this->gl_config.blue_size
   114                                     aBits: _this->gl_config.alpha_size
   114                                     aBits: _this->gl_config.alpha_size
   115                                     depthBits: _this->gl_config.depth_size
   115                                     depthBits: _this->gl_config.depth_size
   116                                     stencilBits: _this->gl_config.stencil_size
   116                                     stencilBits: _this->gl_config.stencil_size
   117                                     majorVersion: _this->gl_config.major_version];
   117                                     majorVersion: _this->gl_config.major_version];
       
   118     if (!view) {
       
   119         return NULL;
       
   120     }
   118 
   121 
   119     data->view = view;
   122     data->view = view;
   120     view->viewcontroller = data->viewcontroller;
   123     view->viewcontroller = data->viewcontroller;
   121     if (view->viewcontroller != nil) {
   124     if (view->viewcontroller != nil) {
   122         [view->viewcontroller setView:view];
   125         [view->viewcontroller setView:view];