mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-10 15:55:45 +00:00
Ensure 1:1 BindOutputWindow to FlipOutputWindow, for now
* Later FlipOutputWindow will probably acquire then present, but atm Bind acquires and Flip presents.
This commit is contained in:
@@ -395,12 +395,12 @@ void VulkanReplay::ClearOutputWindowDepth(uint64_t id, float depth, uint8_t sten
|
||||
|
||||
void VulkanReplay::FlipOutputWindow(uint64_t id)
|
||||
{
|
||||
VULKANNOTIMP("FlipOutputWindow");
|
||||
|
||||
auto it = m_OutputWindows.find(id);
|
||||
if(id == 0 || it == m_OutputWindows.end())
|
||||
return;
|
||||
|
||||
VULKANNOTIMP("FlipOutputWindow");
|
||||
|
||||
OutputWindow &outw = it->second;
|
||||
|
||||
VkDevice dev = m_pDriver->GetDev();
|
||||
|
||||
@@ -415,6 +415,7 @@ bool ReplayOutput::Display()
|
||||
{
|
||||
if(!m_Thumbnails[i].dirty)
|
||||
{
|
||||
m_pDevice->BindOutputWindow(m_Thumbnails[i].outputID, false);
|
||||
m_pDevice->FlipOutputWindow(m_Thumbnails[i].outputID);
|
||||
continue;
|
||||
}
|
||||
@@ -470,7 +471,9 @@ bool ReplayOutput::Display()
|
||||
|
||||
if(!m_MainOutput.dirty)
|
||||
{
|
||||
m_pDevice->BindOutputWindow(m_MainOutput.outputID, false);
|
||||
m_pDevice->FlipOutputWindow(m_MainOutput.outputID);
|
||||
m_pDevice->BindOutputWindow(m_PixelContext.outputID, false);
|
||||
m_pDevice->FlipOutputWindow(m_PixelContext.outputID);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user