Index: src/gpu/vk/GrVkBuffer.cpp |
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp |
index 3b9cbc735c5c8f6fbe7f64e052a3a49a087eea88..75f3901b4e121da4b647af6338a54af67c8f987a 100644 |
--- a/src/gpu/vk/GrVkBuffer.cpp |
+++ b/src/gpu/vk/GrVkBuffer.cpp |
@@ -108,7 +108,7 @@ void GrVkBuffer::Resource::freeGPUData(const GrVkGpu* gpu) const { |
void GrVkBuffer::vkRelease(const GrVkGpu* gpu) { |
VALIDATE(); |
- fResource->unref(gpu); |
+ fResource->recycle(const_cast<GrVkGpu*>(gpu)); |
fResource = nullptr; |
fMapPtr = nullptr; |
VALIDATE(); |