From 0dddaf9d7d0837a574c6e8d255bebb3947f09a0e Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 26 Jan 2018 18:53:34 +1000 Subject: [PATCH] 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. --- .../org/dolphinemu/dolphinemu/fragments/EmulationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {