Fixed iOS context sharing again.
I suck at Objective-C.
--- 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 */