android lost GL context at startup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user