mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-03-06 14:27:44 +00:00
D3D11HostDisplay: Fix headless rendering
This commit is contained in:
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…
Reference in a new issue