Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed iOS context sharing again.
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+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 */ |
|
|