From a0fa3a39941c794365c98dd3bae47a7387d3c699 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 22 Jul 2021 13:42:19 +1000 Subject: [PATCH] HostInterface: Don't save screenshot when switching renderers --- src/core/host_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index c220bb70c..6b1bdb9f8 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -1166,7 +1166,7 @@ void HostInterface::RecreateSystem() Assert(!System::IsShutdown()); std::unique_ptr stream = ByteStream_CreateGrowableMemoryStream(nullptr, 8 * 1024); - if (!System::SaveState(stream.get()) || !stream->SeekAbsolute(0)) + if (!System::SaveState(stream.get(), 0) || !stream->SeekAbsolute(0)) { ReportError("Failed to save state before system recreation. Shutting down."); DestroySystem();