D3D12HostDisplay: Fix headless rendering

This commit is contained in:
Connor McLaughlin 2021-07-23 18:08:57 +10:00
parent be9427499b
commit 09c65b48b8

View file

@ -661,7 +661,7 @@ bool D3D12HostDisplay::UpdateImGuiFontTexture()
bool D3D12HostDisplay::Render()
{
if (ShouldSkipDisplayingFrame())
if (ShouldSkipDisplayingFrame() || !m_swap_chain)
{
if (ImGui::GetCurrentContext())
ImGui::Render();