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

@ -738,9 +738,9 @@ void OpenGLHostDisplay::DestroyResources()
m_display_program.Destroy();
}
bool OpenGLHostDisplay::Render()
bool OpenGLHostDisplay::Render(bool skip_present)
{
if (ShouldSkipDisplayingFrame())
if (skip_present || m_window_info.type == WindowInfo::Type::Surfaceless)
{
if (ImGui::GetCurrentContext())
ImGui::Render();