src/video/uikit/SDL_uikitopengles.m
changeset 6179 a83eb92704f3
parent 6138 4c64952a58fb
child 6267 ed2cf4669e55
--- a/src/video/uikit/SDL_uikitopengles.m	Sat Jan 07 22:33:58 2012 -0500
+++ b/src/video/uikit/SDL_uikitopengles.m	Sat Jan 07 22:34:51 2012 -0500
@@ -115,6 +115,9 @@
                                     depthBits: _this->gl_config.depth_size
                                     stencilBits: _this->gl_config.stencil_size
                                     majorVersion: _this->gl_config.major_version];
+    if (!view) {
+        return NULL;
+    }
 
     data->view = view;
     view->viewcontroller = data->viewcontroller;