Correct size for flushed memory range (Fixes #272)

This commit is contained in:
saschawillems 2017-01-24 12:37:53 +01:00
parent 70f7f54276
commit 127ed7b483

View file

@ -506,7 +506,7 @@ public:
// Flush to make changes visible to the host // Flush to make changes visible to the host
VkMappedMemoryRange memoryRange = vkTools::initializers::mappedMemoryRange(); VkMappedMemoryRange memoryRange = vkTools::initializers::mappedMemoryRange();
memoryRange.memory = uniformBuffers.dynamic.memory; memoryRange.memory = uniformBuffers.dynamic.memory;
memoryRange.size = sizeof(uboDataDynamic); memoryRange.size = uniformBuffers.dynamic.size;
vkFlushMappedMemoryRanges(device, 1, &memoryRange); vkFlushMappedMemoryRanges(device, 1, &memoryRange);
} }