Fixed iOS context sharing again.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Jul 2013 23:38:44 -0400
changeset 7425 e918739b115e
parent 7424 1644ff584b17
child 7426 e36a759d3bb1
Fixed iOS context sharing again. I suck at Objective-C.
src/video/uikit/SDL_uikitopengles.m
--- a/src/video/uikit/SDL_uikitopengles.m	Fri Jul 12 23:32:54 2013 -0400
+++ b/src/video/uikit/SDL_uikitopengles.m	Fri Jul 12 23:38:44 2013 -0400
@@ -107,7 +107,8 @@
     EAGLSharegroup *share_group = nil;
 
     if (_this->gl_config.share_with_current_context) {
-        share_group = [((SDL_uikitopenglview *) SDL_GL_GetCurrentContext()) sharegroup];
+        SDL_uikitopenglview *view = (SDL_uikitopenglview *) SDL_GL_GetCurrentContext();
+        share_group = [view.context sharegroup];
     }
 
     /* construct our view, passing in SDL's OpenGL configuration data */