diff options
| author | mahdihijazi <mahdi.hijaz@hotmail.com> | 2018-01-21 01:30:45 +0100 |
|---|---|---|
| committer | mahdihijazi <mahdi.hijaz@hotmail.com> | 2018-01-21 01:30:45 +0100 |
| commit | e2dbf10ee5925bc0e3ff2a282b01ddc6f1e7979d (patch) | |
| tree | b02a8259025be0b1ae734aae60e6c46d354438d0 /Source/Android/app/src/main/java | |
| parent | 71b551968881af7259256922d8924958f212454c (diff) | |
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.
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/EmulationFragment.java | 1 |
1 files changed, 0 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 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(); } |
