Fixed iOS context sharing again.

I suck at Objective-C.
This commit is contained in:
Ryan C. Gordon 2013-07-12 23:38:44 -04:00
parent ae7a409acf
commit f8be9c4907

View file

@ -107,7 +107,8 @@ SDL_GLContext UIKit_GL_CreateContext(_THIS, SDL_Window * window)
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 */