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;