non-depth attachments also perform render pass loads

This commit is contained in:
goeiecool9999 2025-12-27 14:31:40 +01:00
parent 5430437da7
commit 95606a3e1c

View File

@ -1097,8 +1097,7 @@ void VulkanRenderer::sync_RenderPassLoadTextures(CachedFBOVk* fboVk)
if (texVk->m_vkFlushIndex_write == m_state.currentFlushIndex)
flushRequired = true;
if ((texVk->GetImageAspect() | VK_IMAGE_ASPECT_DEPTH_BIT) != 0)
texVk->m_vkFlushIndex_read = m_state.currentFlushIndex;
texVk->m_vkFlushIndex_read = m_state.currentFlushIndex;
}
if (flushRequired)
sync_performFlushBarrier();