Serialise multiple flushes, not just the first

* typo - copied from unmap condition where we don't serialise anything
  on unmap if there was a flush
This commit is contained in:
baldurk
2015-09-22 12:01:42 +02:00
parent 857f20d164
commit ddaf962dde
@@ -340,7 +340,7 @@ VkResult WrappedVulkan::vkFlushMappedMemoryRanges(
auto it = m_MemoryInfo.find(GetResID(pMemRanges[i].mem));
it->second.mapFlushed = true;
if(ret == VK_SUCCESS && m_State >= WRITING_CAPFRAME && !it->second.mapFlushed)
if(ret == VK_SUCCESS && m_State >= WRITING_CAPFRAME)
{
SCOPED_SERIALISE_CONTEXT(FLUSH_MEM);
Serialise_vkFlushMappedMemoryRanges(device, 1, pMemRanges+i);