Skip to content

Commit 285f385

Browse files
committed
iOS: Set openGL Context in AppDelegate to prevent Crashes.
1 parent 41518bd commit 285f385

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jme3-ios/ios-data/templates/project/jme-ios/jmeAppDelegate.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
4242
_glview.drawableDepthFormat = GLKViewDrawableDepthFormat24;
4343
_glview.delegate = self;
4444

45+
[EAGLContext setCurrentContext: _ctx];
46+
4547
/**
4648
* GLES View Controller initialization
4749
**/

0 commit comments

Comments
 (0)