emuThreadState might become STOPPED before the last frame has been run,
which can cause WaitUntilQueueIdle to hang.
It's simpler just to wait until StopThread() is called, since it now is.
This will line up properly with run_.
SDL/SDLMain.cpp:160:2: error: unknown type name 'SDL_SysWMinfo'; did you mean 'SDL_SysWMmsg'?
SDL_SysWMinfo sysInfo; //Will hold our Window information
^~~~~~~~~~~~~
SDL_SysWMmsg
SDL/SDLMain.cpp:433:2: error: unknown type name 'SDL_SysWMinfo'; did you mean 'SDL_SysWMmsg'?
SDL_SysWMinfo sys_info{};
^~~~~~~~~~~~~
SDL_SysWMmsg
SDL/SDLMain.cpp:440:2: warning: expression result unused [-Wunused-value]
Window x11_window = sys_info.info.x11.window;
^~~~~~
* When compiled with USING_GLES2, attempt to use only valid ES context
versions.
* Ensure that lower profiles are attempted correctly rather than
prematurely returning from the function after the first failure.
Needed for Raspberry Pi to successfully launch.