mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 13:15:45 -04:00
System: Move restore/reset graphics API state to System
Fixes frame stepping.
This commit is contained in:
@ -1505,16 +1505,12 @@ void SDLHostInterface::Run()
|
||||
{
|
||||
DrawImGuiWindows();
|
||||
|
||||
if (System::IsRunning())
|
||||
g_gpu->ResetGraphicsAPIState();
|
||||
|
||||
m_display->Render();
|
||||
ImGui_ImplSDL2_NewFrame(m_window);
|
||||
ImGui::NewFrame();
|
||||
|
||||
if (System::IsRunning())
|
||||
{
|
||||
g_gpu->RestoreGraphicsAPIState();
|
||||
System::UpdatePerformanceCounters();
|
||||
|
||||
if (m_speed_limiter_enabled)
|
||||
|
Reference in New Issue
Block a user