Make sure we always do BindOutputWindow/FlipOutputWindow pairs of work

This commit is contained in:
baldurk
2015-10-16 14:13:52 +02:00
parent b319929f39
commit 91ac384736
2 changed files with 9 additions and 5 deletions
-2
View File
@@ -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);
+9 -3
View File
@@ -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;