From e2dbf10ee5925bc0e3ff2a282b01ddc6f1e7979d Mon Sep 17 00:00:00 2001 From: mahdihijazi Date: Sun, 21 Jan 2018 01:30:45 +0100 Subject: [PATCH] Android: Keep the local copy of the mSurface onCreateView might not be called after resuming the emulatoin wich will leed the game to stuck in the middle since mRunWhenSurfaceIsValid will be true but surfaceChanged will never be called in this case. --- .../org/dolphinemu/dolphinemu/fragments/EmulationFragment.java | 1 - 1 file changed, 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 1d6a67e6c4..6b039e185f 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 @@ -306,7 +306,6 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C Log.debug("[EmulationFragment] Pausing emulation."); // Release the surface before pausing, since emulation has to be running for that. - mSurface = null; NativeLibrary.SurfaceDestroyed(); NativeLibrary.PauseEmulation(); }