D3D11HostDisplay: Fix headless rendering

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

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

Loading…
Cancel
Save