Check both the return value and the value in VkPresentInfoKHR struct

This commit is contained in:
baldurk
2016-04-25 19:11:42 +02:00
parent a316712da8
commit c6145ff2db
+2 -1
View File
@@ -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();
}