From 3e54720e91b9ef3c7e4ebc51d105c0e0d4fc467f Mon Sep 17 00:00:00 2001 From: omigamedev Date: Fri, 8 Mar 2019 21:15:46 +0100 Subject: [PATCH] android lost GL context at startup --- android/src/main/cpp/main.cpp | 4 ++++ data/layout.xml | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/android/src/main/cpp/main.cpp b/android/src/main/cpp/main.cpp index 6cdb76b..285111d 100755 --- a/android/src/main/cpp/main.cpp +++ b/android/src/main/cpp/main.cpp @@ -667,6 +667,9 @@ static int engine_init_display(struct engine* engine) { //LOG("PROP: %s", os_props[""].c_str()); // Initialize GL state. + + android_async_lock(engine); + //glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); //glEnable(GL_CULL_FACE); //glShadeModel(GL_SMOOTH); @@ -690,6 +693,7 @@ static int engine_init_display(struct engine* engine) { LOG("All ready"); engine->animating = 1; + android_async_unlock(engine); return 0; } diff --git a/data/layout.xml b/data/layout.xml index 1ccd02b..678d3f9 100644 --- a/data/layout.xml +++ b/data/layout.xml @@ -1523,17 +1523,6 @@ Here's a list of what's available in this release. -