HostInterface: Don't save screenshot when switching renderers

This commit is contained in:
Connor McLaughlin 2021-07-22 13:42:19 +10:00
parent cebf8957e6
commit a0fa3a3994

View file

@ -1166,7 +1166,7 @@ void HostInterface::RecreateSystem()
Assert(!System::IsShutdown());
std::unique_ptr<ByteStream> 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();