diff options
| author | Stenzek <stenzek@gmail.com> | 2018-01-26 18:53:34 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-02-20 01:15:55 +1000 |
| commit | 0dddaf9d7d0837a574c6e8d255bebb3947f09a0e (patch) | |
| tree | 7e14390a62a600c8ec89ad39a77919748d6152f1 /Source/Android/app/src/main/java | |
| parent | de632fc9c8d7d026ccad1afc2f72224ee9639023 (diff) | |
Android: Update renderer surface before resuming emulation
Previously, this could cause a race condition which resulted in the
Vulkan backend attempting to acquire a swap chain image from a now
non-existant surface. By ensuring the backend knows about the surface
before a frame is presented, this race does not happen.
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/EmulationFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/EmulationFragment.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/EmulationFragment.java index 39eb383ae7..c7e13a9999 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/EmulationFragment.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/EmulationFragment.java @@ -420,8 +420,8 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C else if (state == State.PAUSED) { Log.debug("[EmulationFragment] Resuming emulation."); - NativeLibrary.UnPauseEmulation(); NativeLibrary.SurfaceChanged(mSurface); + NativeLibrary.UnPauseEmulation(); } else { |
