mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-01 07:55:42 -04: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…
x
Reference in New Issue
Block a user