diff options
| author | 2023-06-01 20:08:00 -0700 | |
|---|---|---|
| committer | 2023-06-03 00:06:08 -0700 | |
| commit | 4ac9778652b7d8f836d068f43be94d73ddd70832 (patch) | |
| tree | 7ad20e41d2ae5cffb3245bf852d1c84014665901 /src/android | |
| parent | android: renderer_vulkan: Fix crash with surface recreation. (diff) | |
| download | yuzu-4ac9778652b7d8f836d068f43be94d73ddd70832.tar.gz yuzu-4ac9778652b7d8f836d068f43be94d73ddd70832.tar.xz yuzu-4ac9778652b7d8f836d068f43be94d73ddd70832.zip | |
android: EmulationFragment: Remove unnecessary surface destroy on pause.
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt index 5f1a94190..e00f02f86 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt | |||
| @@ -470,8 +470,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { | |||
| 470 | if (state != State.PAUSED) { | 470 | if (state != State.PAUSED) { |
| 471 | Log.debug("[EmulationFragment] Pausing emulation.") | 471 | Log.debug("[EmulationFragment] Pausing emulation.") |
| 472 | 472 | ||
| 473 | // Release the surface before pausing, since emulation has to be running for that. | ||
| 474 | NativeLibrary.surfaceDestroyed() | ||
| 475 | NativeLibrary.pauseEmulation() | 473 | NativeLibrary.pauseEmulation() |
| 476 | 474 | ||
| 477 | state = State.PAUSED | 475 | state = State.PAUSED |
| @@ -516,7 +514,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { | |||
| 516 | Log.debug("[EmulationFragment] Surface destroyed.") | 514 | Log.debug("[EmulationFragment] Surface destroyed.") |
| 517 | when (state) { | 515 | when (state) { |
| 518 | State.RUNNING -> { | 516 | State.RUNNING -> { |
| 519 | NativeLibrary.surfaceDestroyed() | ||
| 520 | state = State.PAUSED | 517 | state = State.PAUSED |
| 521 | } | 518 | } |
| 522 | 519 | ||