mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Make sure to always update oldLayout when processing image states
* This is used to determine what barriers to apply
This commit is contained in:
@@ -724,6 +724,7 @@ void VulkanResourceManager::ApplyBarriers(uint32_t queueFamilyIndex,
|
||||
// apply it (prevstate is from the start of all barriers accumulated, so only set once)
|
||||
if(it->oldLayout == UNKNOWN_PREV_IMG_LAYOUT)
|
||||
it->oldLayout = t.oldLayout;
|
||||
t.oldLayout = it->newLayout;
|
||||
it->newLayout = t.newLayout;
|
||||
|
||||
// continue as there might be more, but we're done
|
||||
@@ -777,6 +778,7 @@ void VulkanResourceManager::ApplyBarriers(uint32_t queueFamilyIndex,
|
||||
// once)
|
||||
if(it->oldLayout == UNKNOWN_PREV_IMG_LAYOUT)
|
||||
it->oldLayout = t.oldLayout;
|
||||
t.oldLayout = it->newLayout;
|
||||
it->newLayout = t.newLayout;
|
||||
|
||||
// continue as there might be more, but we're done
|
||||
|
||||
Reference in New Issue
Block a user