Explorar el Código

iOS: Set openGL Context in AppDelegate to prevent Crashes.

MeFisto94 hace 9 años
padre
commit
9e0ca068b3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      jme3-ios/ios-data/templates/project/jme-ios/jmeAppDelegate.m

+ 2 - 0
jme3-ios/ios-data/templates/project/jme-ios/jmeAppDelegate.m

@@ -42,6 +42,8 @@ getEnv(JavaVM* vm)
     _glview.drawableDepthFormat = GLKViewDrawableDepthFormat24;
     _glview.delegate = self;
     
+    [EAGLContext setCurrentContext: _ctx];
+    
     /**
      * GLES View Controller initialization
      **/