mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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.
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user