System: Move restore/reset graphics API state to System

Fixes frame stepping.
This commit is contained in:
Connor McLaughlin committed 2020-08-01 16:45:07 +10:00
1 parent 3532ab8d72
commit e9882a10aa
5 files changed
+34 -25

No files matched your search

-4
View File
@@ -1094,14 +1094,10 @@ void QtHostInterface::threadEntryPoint()
void QtHostInterface::renderDisplay()
{
g_gpu->ResetGraphicsAPIState();
DrawImGuiWindows();
m_display->Render();
ImGui::NewFrame();
g_gpu->RestoreGraphicsAPIState();
}
void QtHostInterface::wakeThread()