mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-27 05:26:47 +00:00
android: EmulationFragment: Remove unnecessary surface destroy on pause.
This commit is contained in:
parent
098e2c4077
commit
4ac9778652
|
@ -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…
Reference in a new issue