mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 21:17:45 +00:00
Fixed crash if mSurface isn't set up when we pause the application
This commit is contained in:
@@ -354,7 +354,8 @@ public class SDLActivity extends Activity {
|
||||
// Try a transition to paused state
|
||||
if (mNextNativeState == NativeState.PAUSED) {
|
||||
nativePause();
|
||||
mSurface.handlePause();
|
||||
if (mSurface != null)
|
||||
mSurface.handlePause();
|
||||
mCurrentNativeState = mNextNativeState;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user