Index: src/gpu/vk/GrVkResourceProvider.cpp |
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp |
index 7980a2d5f48da7b106a95c22d8210ef2fc74926e..c7a66caf4e027287fa5a7cf58e417d2d47ed0437 100644 |
--- a/src/gpu/vk/GrVkResourceProvider.cpp |
+++ b/src/gpu/vk/GrVkResourceProvider.cpp |
@@ -270,6 +270,7 @@ void GrVkResourceProvider::destroyResources() { |
for (int i = 0; i < fActiveCommandBuffers.count(); ++i) { |
SkASSERT(fActiveCommandBuffers[i]->finished(fGpu)); |
SkASSERT(fActiveCommandBuffers[i]->unique()); |
+ fActiveCommandBuffers[i]->reset(fGpu); |
fActiveCommandBuffers[i]->unref(fGpu); |
} |
fActiveCommandBuffers.reset(); |