From fbdc9ae631c56f46273bca295c964dc7f98bdd10 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 4 Aug 2020 21:08:56 +1000 Subject: [PATCH] CommonHostInterface: Remove additional API reset/restore on screenshot --- src/frontend-common/common_host_interface.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 56faf45ac..79e18a876 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -1999,9 +1999,7 @@ bool CommonHostInterface::SaveScreenshot(const char* filename /* = nullptr */, b filename = auto_filename.c_str(); } - g_gpu->ResetGraphicsAPIState(); const bool screenshot_saved = m_display->WriteDisplayTextureToFile(filename, full_resolution, apply_aspect_ratio); - g_gpu->RestoreGraphicsAPIState(); if (!screenshot_saved) { AddFormattedOSDMessage(10.0f, "Failed to save screenshot to '%s'", filename);