D3D11HostDisplay: Fix headless rendering

This commit is contained in:
Connor McLaughlin 2021-07-23 18:07:30 +10:00
parent d230e7d22f
commit be9427499b

View file

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