CommonHostInterface: Remove additional API reset/restore on screenshot

This commit is contained in:
Connor McLaughlin 2020-08-04 21:08:56 +10:00
parent dd9705ef31
commit fbdc9ae631
1 changed files with 0 additions and 2 deletions

View File

@ -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);