Android: Keep the local copy of the mSurface

onCreateView might not be called after resuming the emulatoin wich will
leed the game to stuck in the middle since mRunWhenSurfaceIsValid will be
true but surfaceChanged will never be called in this case.
This commit is contained in:
mahdihijazi 2018-01-21 01:30:45 +01:00
parent 71b5519688
commit e2dbf10ee5
1 changed files with 0 additions and 1 deletions

View File

@ -306,7 +306,6 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
Log.debug("[EmulationFragment] Pausing emulation.");
// Release the surface before pausing, since emulation has to be running for that.
mSurface = null;
NativeLibrary.SurfaceDestroyed();
NativeLibrary.PauseEmulation();
}