mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Make sure we always do BindOutputWindow/FlipOutputWindow pairs of work
This commit is contained in:
@@ -701,8 +701,6 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
|
||||
0,
|
||||
};
|
||||
|
||||
// VKTODOMED used for texture display, but eventually will have to be created on the fly
|
||||
// for whichever image we're viewing (and cached), not specifically created here.
|
||||
vkr = vt->CreateImageView(Unwrap(dev), &viewInfo, &m_TextAtlasView);
|
||||
RDCASSERT(vkr == VK_SUCCESS);
|
||||
|
||||
|
||||
@@ -360,9 +360,15 @@ void ReplayOutput::DisplayContext()
|
||||
m_pDevice->BindOutputWindow(m_PixelContext.outputID, false);
|
||||
m_pDevice->ClearOutputWindowColour(m_PixelContext.outputID, color);
|
||||
|
||||
if(m_Config.m_Type != eOutputType_TexDisplay) return;
|
||||
if(m_ContextX < 0.0f && m_ContextY < 0.0f) return;
|
||||
if(m_RenderData.texDisplay.texid == ResourceId()) return;
|
||||
if(
|
||||
(m_Config.m_Type != eOutputType_TexDisplay) ||
|
||||
(m_ContextX < 0.0f && m_ContextY < 0.0f) ||
|
||||
(m_RenderData.texDisplay.texid == ResourceId())
|
||||
)
|
||||
{
|
||||
m_pDevice->FlipOutputWindow(m_PixelContext.outputID);
|
||||
return;
|
||||
}
|
||||
|
||||
TextureDisplay disp = m_RenderData.texDisplay;
|
||||
disp.rawoutput = false;
|
||||
|
||||
Reference in New Issue
Block a user