mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 12:25:37 +00:00
Fixed crash if mSurface isn't set up when we pause the application
This commit is contained in:
parent
81f7e0c1f7
commit
45536710f3
|
@ -354,6 +354,7 @@ public class SDLActivity extends Activity {
|
|||
// Try a transition to paused state
|
||||
if (mNextNativeState == NativeState.PAUSED) {
|
||||
nativePause();
|
||||
if (mSurface != null)
|
||||
mSurface.handlePause();
|
||||
mCurrentNativeState = mNextNativeState;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue