D3D12HostDisplay: Fix headless rendering

pull/2436/head
Connor McLaughlin 4 years ago
parent be9427499b
commit 09c65b48b8

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

Loading…
Cancel
Save