Index: src/gpu/vk/GrVkBuffer.cpp |
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp |
index ff809eb50fbd20fbfdb6522c6d92f3db2e07c0c2..e8fe619a435fa1052c09f3b9dcb7fc94a30d1980 100644 |
--- a/src/gpu/vk/GrVkBuffer.cpp |
+++ b/src/gpu/vk/GrVkBuffer.cpp |
@@ -153,7 +153,7 @@ void GrVkBuffer::vkUnmap(GrVkGpu* gpu) { |
VK_CALL(gpu, UnmapMemory(gpu->device(), this->alloc().fMemory)); |
} else { |
gpu->updateBuffer(this, fMapPtr, this->size()); |
- delete fMapPtr; |
+ delete (unsigned char*) fMapPtr; |
egdaniel
2016/07/07 02:58:08
should this be using delete[]?
|
} |
fMapPtr = nullptr; |