mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 15:05:46 +00:00
android: EmulationFragment: Remove unnecessary surface destroy on pause.
This commit is contained in:
parent
fb362f0b6e
commit
cb077cc1b0
1 changed files with 0 additions and 3 deletions
|
@ -470,8 +470,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||
if (state != State.PAUSED) {
|
||||
Log.debug("[EmulationFragment] Pausing emulation.")
|
||||
|
||||
// Release the surface before pausing, since emulation has to be running for that.
|
||||
NativeLibrary.surfaceDestroyed()
|
||||
NativeLibrary.pauseEmulation()
|
||||
|
||||
state = State.PAUSED
|
||||
|
@ -516,7 +514,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||
Log.debug("[EmulationFragment] Surface destroyed.")
|
||||
when (state) {
|
||||
State.RUNNING -> {
|
||||
NativeLibrary.surfaceDestroyed()
|
||||
state = State.PAUSED
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue