Index: src/gpu/vk/GrVkPipelineState.cpp |
diff --git a/src/gpu/vk/GrVkPipelineState.cpp b/src/gpu/vk/GrVkPipelineState.cpp |
index 5b3fa8f0568321cdbfc7724f287af350699e8000..2dd691cf29c6fe190ca1acfa78e319d1d60058ed 100644 |
--- a/src/gpu/vk/GrVkPipelineState.cpp |
+++ b/src/gpu/vk/GrVkPipelineState.cpp |
@@ -382,13 +382,13 @@ void GrVkPipelineState::addUniformResources(GrVkCommandBuffer& commandBuffer) { |
commandBuffer.addRecycledResource(fSamplerDescriptorSet); |
} |
- |
if (fVertexUniformBuffer.get()) { |
- commandBuffer.addResource(fVertexUniformBuffer->resource()); |
+ commandBuffer.addRecycledResource(fVertexUniformBuffer->resource()); |
} |
if (fFragmentUniformBuffer.get()) { |
- commandBuffer.addResource(fFragmentUniformBuffer->resource()); |
+ commandBuffer.addRecycledResource(fFragmentUniformBuffer->resource()); |
} |
+ |
for (int i = 0; i < fSamplers.count(); ++i) { |
commandBuffer.addResource(fSamplers[i]); |
} |