mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
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:
parent
20c23f0007
commit
2b79ae96d9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user