From 2b79ae96d9649d26be9a3deea0862ac1ad29c19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Wed, 14 Apr 2021 10:58:57 +0200 Subject: [PATCH] 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 --- src/SFML/Main/MainAndroid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Main/MainAndroid.cpp b/src/SFML/Main/MainAndroid.cpp index f1e315b0e..49fb697fe 100644 --- a/src/SFML/Main/MainAndroid.cpp +++ b/src/SFML/Main/MainAndroid.cpp @@ -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();