mirror of https://github.com/libsdl-org/SDL.git
Fixed infinite recursion at startup on Android
This commit is contained in:
parent
88a01fbc96
commit
095fb5f522
|
|
@ -122,7 +122,12 @@ SDL_Environment *SDL_CreateEnvironment(bool populated)
|
|||
#else
|
||||
#ifdef SDL_PLATFORM_ANDROID
|
||||
// Make sure variables from the application manifest are available
|
||||
Android_JNI_GetManifestEnvironmentVariables();
|
||||
static bool initializing;
|
||||
if (!initializing) {
|
||||
initializing = true;
|
||||
Android_JNI_GetManifestEnvironmentVariables();
|
||||
initializing = false;
|
||||
}
|
||||
#endif
|
||||
char **strings = environ;
|
||||
if (strings) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue