VideoCommon: Eliminate static state in Renderer

This commit is contained in:
Stenzek
2017-03-04 16:39:50 +10:00
parent de230f3ebe
commit 277829d842
23 changed files with 99 additions and 136 deletions

View File

@ -738,7 +738,7 @@ void SaveScreenShot()
SetState(State::Paused);
Renderer::SetScreenshot(GenerateScreenshotName());
g_renderer->SetScreenshot(GenerateScreenshotName());
if (!bPaused)
SetState(State::Running);
@ -752,7 +752,7 @@ void SaveScreenShot(const std::string& name)
std::string filePath = GenerateScreenshotFolderPath() + name + ".png";
Renderer::SetScreenshot(filePath);
g_renderer->SetScreenshot(filePath);
if (!bPaused)
SetState(State::Running);