OK, /actually/ fixed the nativeQuit() crash this time

This commit is contained in:
Paul Hunkin 2010-07-27 11:02:07 +02:00
parent 559937b746
commit db6bbd35de

View File

@ -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