mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-30 15:35:42 -04:00
CommonHostInterface: Remove additional API reset/restore on screenshot
This commit is contained in:
parent
dd9705ef31
commit
fbdc9ae631
@ -1999,9 +1999,7 @@ bool CommonHostInterface::SaveScreenshot(const char* filename /* = nullptr */, b
|
|||||||
filename = auto_filename.c_str();
|
filename = auto_filename.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
g_gpu->ResetGraphicsAPIState();
|
|
||||||
const bool screenshot_saved = m_display->WriteDisplayTextureToFile(filename, full_resolution, apply_aspect_ratio);
|
const bool screenshot_saved = m_display->WriteDisplayTextureToFile(filename, full_resolution, apply_aspect_ratio);
|
||||||
g_gpu->RestoreGraphicsAPIState();
|
|
||||||
if (!screenshot_saved)
|
if (!screenshot_saved)
|
||||||
{
|
{
|
||||||
AddFormattedOSDMessage(10.0f, "Failed to save screenshot to '%s'", filename);
|
AddFormattedOSDMessage(10.0f, "Failed to save screenshot to '%s'", filename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user