Index: src/gpu/vk/GrVkBuffer.cpp |
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp |
index b8efb39177ffbc4d63ef71b99e01ef1208f75fbb..82674b4cfbfe04f6d6f29ee8988d9aacfd7a7c08 100644 |
--- a/src/gpu/vk/GrVkBuffer.cpp |
+++ b/src/gpu/vk/GrVkBuffer.cpp |
@@ -180,6 +180,7 @@ void GrVkBuffer::internalUnmap(GrVkGpu* gpu, size_t size) { |
SkASSERT(this->vkIsMapped()); |
if (fDesc.fDynamic) { |
+ GrVkMemory::FlushMappedAlloc(gpu, this->alloc()); |
VK_CALL(gpu, UnmapMemory(gpu->device(), this->alloc().fMemory)); |
fMapPtr = nullptr; |
} else { |