mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 16:36:25 +00:00
Android: concurrency issues, make sure Activity is in running State when calling
functions like SDL_CreateWindow, SDL_CreateRenderer, Android_GLES_CreateContext Bugs 4694, 4681, 4142
This commit is contained in:
@@ -42,7 +42,7 @@ Android_CreateWindow(_THIS, SDL_Window * window)
|
||||
SDL_WindowData *data;
|
||||
int retval = 0;
|
||||
|
||||
SDL_LockMutex(Android_ActivityMutex);
|
||||
Android_ActivityMutex_Lock_Running();
|
||||
|
||||
if (Android_Window) {
|
||||
retval = SDL_SetError("Android only supports one window");
|
||||
|
Reference in New Issue
Block a user