mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
D3D12HostDisplay: Fix headless rendering
This commit is contained in:
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…
Reference in a new issue