Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed iOS context sharing again.
I suck at Objective-C.
  • Loading branch information
icculus committed Jul 13, 2013
1 parent 849c9d1 commit d47c4f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/uikit/SDL_uikitopengles.m
Expand Up @@ -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 */
Expand Down

0 comments on commit d47c4f4

Please sign in to comment.