Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed iOS context sharing again.

I suck at Objective-C.
  • Loading branch information
icculus committed Jul 13, 2013
1 parent 849c9d1 commit d47c4f4de07920756eaa97f1e1aa404fb97aa37d
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/video/uikit/SDL_uikitopengles.m
@@ -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 */

0 comments on commit d47c4f4

Please sign in to comment.