mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-03-06 14:27:44 +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()
|
bool D3D12HostDisplay::Render()
|
||||||
{
|
{
|
||||||
if (ShouldSkipDisplayingFrame())
|
if (ShouldSkipDisplayingFrame() || !m_swap_chain)
|
||||||
{
|
{
|
||||||
if (ImGui::GetCurrentContext())
|
if (ImGui::GetCurrentContext())
|
||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
|
|
Loading…
Reference in a new issue