Android: add static variable initialization in non blocking event loop
authorSylvain Becker <sylvain.becker@gmail.com>
Tue, 23 Apr 2019 14:24:58 +0200
changeset 1271266a50635b3e8
parent 12711 60b397c49d36
child 12713 8ed803255020
Android: add static variable initialization in non blocking event loop
src/video/android/SDL_androidevents.c
     1.1 --- a/src/video/android/SDL_androidevents.c	Mon Apr 22 16:34:42 2019 -0700
     1.2 +++ b/src/video/android/SDL_androidevents.c	Tue Apr 23 14:24:58 2019 +0200
     1.3 @@ -142,7 +142,7 @@
     1.4  Android_PumpEvents_NonBlocking(_THIS)
     1.5  {
     1.6      SDL_VideoData *videodata = (SDL_VideoData *)_this->driverdata;
     1.7 -    static int backup_context;
     1.8 +    static int backup_context = 0;
     1.9  
    1.10      if (videodata->isPaused) {
    1.11