mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
If window is zero-sized, still bind & clear to black
This commit is contained in:
@@ -681,15 +681,13 @@ void ReplayOutput::DisplayTex()
|
||||
|
||||
if(m_MainOutput.outputID == 0)
|
||||
return;
|
||||
if(m_RenderData.texDisplay.resourceId == ResourceId())
|
||||
if(m_RenderData.texDisplay.resourceId == ResourceId() || m_Width <= 0 || m_Height <= 0)
|
||||
{
|
||||
FloatVector color;
|
||||
m_pDevice->BindOutputWindow(m_MainOutput.outputID, false);
|
||||
m_pDevice->ClearOutputWindowColor(m_MainOutput.outputID, color);
|
||||
return;
|
||||
}
|
||||
if(m_Width <= 0 || m_Height <= 0)
|
||||
return;
|
||||
|
||||
TextureDisplay texDisplay = m_RenderData.texDisplay;
|
||||
texDisplay.rawOutput = false;
|
||||
|
||||
Reference in New Issue
Block a user