Fix recording image barriers from non-baked command info

This commit is contained in:
baldurk
2016-02-07 18:48:08 +01:00
parent 787776f5d3
commit e2f9cffb3d
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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