NativeActivity: null surface on exit, renderloopthread on exception

This commit is contained in:
Henrik Rydgård 2023-09-21 16:42:00 +02:00
parent 602407fcf2
commit f83fb2325e

View File

@ -724,6 +724,7 @@ public abstract class NativeActivity extends Activity {
mRenderLoopThread = null;
} catch (InterruptedException e) {
e.printStackTrace();
mRenderLoopThread = null;
}
}
}
@ -766,6 +767,7 @@ public abstract class NativeActivity extends Activity {
} else {
mSurfaceView.onDestroy();
mSurfaceView = null;
mSurface = null;
}
// Probably vain attempt to help the garbage collector...