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:
parent
71b5519688
commit
e2dbf10ee5
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue