aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2016-07-06 14:26:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-06 14:26:53 -0700
commit47e3dbaab5396febbe6173000ea88cca1cf9c211 (patch)
tree113ab463223f33ad641d6845e52553581761f2e8
parent2edb0f4a02fd1dbb8d6cb628b84048bcc875f72f (diff)
Deleting void pointers is bad, mmmkay?
-rw-r--r--src/gpu/vk/GrVkBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp
index ff809eb50f..e8fe619a43 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;
}
fMapPtr = nullptr;