Remove validation warnings when RTT is used

This commit is contained in:
Benau 2022-11-07 10:18:32 +08:00
parent d5abf8d8a0
commit 6b8e0644db

View File

@ -2416,6 +2416,8 @@ void GEVulkanDriver::buildCommandBuffers()
if (m_rtt_texture)
{
vkCmdEndRenderPass(getCurrentCommandBuffer());
// No depth buffer in main framebuffer if RTT is used
render_pass_info.clearValueCount = 1;
render_pass_info.renderPass = getRenderPass();
render_pass_info.framebuffer =
getSwapChainFramebuffers()[getCurrentImageIndex()];