Index: src/gpu/vk/GrVkGpuCommandBuffer.cpp |
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.cpp b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
index 6c966b5fa941144b13f247c752bb089933b97764..aa2f793a9080d3ac754f1ab9c562fa7f247ec848 100644 |
--- a/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
+++ b/src/gpu/vk/GrVkGpuCommandBuffer.cpp |
@@ -84,8 +84,8 @@ GrVkGpuCommandBuffer::GrVkGpuCommandBuffer(GrVkGpu* gpu, |
GrColorToRGBAFloat(colorInfo.fClearColor, fColorClearValue.color.float32); |
- fCommandBuffer = GrVkSecondaryCommandBuffer::Create(gpu, gpu->cmdPool(), fRenderPass); |
- fCommandBuffer->begin(gpu, target->framebuffer()); |
+ fCommandBuffer = gpu->resourceProvider().findOrCreateSecondaryCommandBuffer(); |
+ fCommandBuffer->begin(gpu, target->framebuffer(), fRenderPass); |
} |
GrVkGpuCommandBuffer::~GrVkGpuCommandBuffer() { |