D3D12HostDisplay: Fix headless rendering
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user