Fix OpenGL context on Android

When waiting for an event, rather then polling, the android
looper prevents the creation of a OpenGL context till ALooper
receives an event rather then allowing creation at the appropriate time
This commit is contained in:
Lukas Dürrenberger 2021-04-14 10:58:57 +02:00 committed by Lukas Dürrenberger
parent 20c23f0007
commit 2b79ae96d9

View File

@ -102,6 +102,7 @@ static void initializeMain(ActivityStates* states)
* input queue.
*/
ALooper_acquire(states->looper);
ALooper_wake(states->looper);
// Get the default configuration
states->config = AConfiguration_new();