mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-18 21:47:13 +00:00
Check both the return value and the value in VkPresentInfoKHR struct
This commit is contained in:
@@ -2764,8 +2764,9 @@ void VulkanReplay::FlipOutputWindow(uint64_t id)
|
||||
&vkr
|
||||
};
|
||||
|
||||
vkr = vt->QueuePresentKHR(Unwrap(m_pDriver->GetQ()), &presentInfo);
|
||||
VkResult retvkr = vt->QueuePresentKHR(Unwrap(m_pDriver->GetQ()), &presentInfo);
|
||||
RDCASSERTEQUAL(vkr, VK_SUCCESS);
|
||||
RDCASSERTEQUAL(retvkr, VK_SUCCESS);
|
||||
|
||||
m_pDriver->FlushQ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user