mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Fix recording image barriers from non-baked command info
This commit is contained in:
@@ -241,7 +241,6 @@ void VulkanResourceManager::SerialiseImageStates(map<ResourceId, ImageLayouts> &
|
||||
ResourceId liveid;
|
||||
if(m_State < WRITING && HasLiveResource(id))
|
||||
liveid = GetLiveID(id);
|
||||
auto dstit = states.find(id);
|
||||
|
||||
for(uint32_t m=0; m < NumStates; m++)
|
||||
{
|
||||
|
||||
@@ -359,7 +359,7 @@ VkResult WrappedVulkan::vkQueueSubmit(
|
||||
|
||||
{
|
||||
SCOPED_LOCK(m_ImageLayoutsLock);
|
||||
GetResourceManager()->ApplyBarriers(record->cmdInfo->imgbarriers, m_ImageLayouts);
|
||||
GetResourceManager()->ApplyBarriers(record->bakedCommands->cmdInfo->imgbarriers, m_ImageLayouts);
|
||||
}
|
||||
|
||||
// need to lock the whole section of code, not just the check on
|
||||
|
||||
Reference in New Issue
Block a user