Index: src/gpu/vk/GrVkBuffer.cpp |
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp |
index 75f3901b4e121da4b647af6338a54af67c8f987a..a03ea0cc41ef43ba0c4f71b7b4eaa9054409c27f 100644 |
--- a/src/gpu/vk/GrVkBuffer.cpp |
+++ b/src/gpu/vk/GrVkBuffer.cpp |
@@ -180,8 +180,8 @@ bool GrVkBuffer::vkUpdateData(GrVkGpu* gpu, const void* src, size_t srcSizeInByt |
if (!fResource->unique()) { |
// in use by the command buffer, so we need to create a new one |
- fResource->unref(gpu); |
- fResource = Create(gpu, fDesc); |
+ fResource->recycle(gpu); |
+ fResource = this->createResource(gpu, fDesc); |
if (createdNewBuffer) { |
*createdNewBuffer = true; |
} |