android lost GL context at startup

This commit is contained in:
2019-03-08 21:15:46 +01:00
parent 35d3bd4746
commit 3e54720e91
2 changed files with 4 additions and 11 deletions

View File

@@ -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;
}