Skip to content

Commit

Permalink
Check both the return value and the value in VkPresentInfoKHR struct
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Apr 25, 2016
1 parent a316712 commit c6145ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion renderdoc/driver/vulkan/vk_replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c6145ff

Please sign in to comment.