mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 00:25:37 -05:00
OK, /actually/ fixed the nativeQuit() crash this time
This commit is contained in:
@@ -153,6 +153,13 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
|
||||
Log.v("SDL","Surface destroyed");
|
||||
|
||||
SDLActivity.nativeQuit();
|
||||
|
||||
//Now wait for the SDL thread to quit
|
||||
try{
|
||||
mSDLThread.wait();
|
||||
}catch(Exception e){
|
||||
Log.v("SDL","Problem stopping thread: " + e);
|
||||
}
|
||||
}
|
||||
|
||||
//Called when the surface is resized
|
||||
|
||||
Reference in New Issue
Block a user