mirror of
https://github.com/yawut/SDL.git
synced 2026-04-22 00:27:21 -05:00
OK, /actually/ fixed the nativeQuit() crash this time
This commit is contained in:
parent
559937b746
commit
db6bbd35de
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user