Fixed iOS context sharing again.
I suck at Objective-C.
This commit is contained in:
parent
ae7a409acf
commit
f8be9c4907
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue