System: Move present skip check to core

This commit is contained in:
Connor McLaughlin
2022-08-18 23:51:43 +10:00
parent de21ff250c
commit c7e8233b7b
13 changed files with 39 additions and 34 deletions

View File

@ -650,9 +650,9 @@ bool D3D12HostDisplay::UpdateImGuiFontTexture()
return ImGui_ImplDX12_CreateFontsTexture();
}
bool D3D12HostDisplay::Render()
bool D3D12HostDisplay::Render(bool skip_present)
{
if (ShouldSkipDisplayingFrame() || !m_swap_chain)
if (skip_present || !m_swap_chain)
{
if (ImGui::GetCurrentContext())
ImGui::Render();