Index: src/gpu/vk/GrVkResourceProvider.cpp |
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp |
index a632be44e22b4e54e28d17351e7689a6d1575c50..31d5568b603030046fcab264dd3a2194f578cc43 100644 |
--- a/src/gpu/vk/GrVkResourceProvider.cpp |
+++ b/src/gpu/vk/GrVkResourceProvider.cpp |
@@ -339,7 +339,7 @@ GrVkRenderPass* GrVkResourceProvider::CompatibleRenderPassSet::getRenderPass( |
return fRenderPasses[idx]; |
} |
} |
- GrVkRenderPass* renderPass = fRenderPasses.push_back(); |
+ GrVkRenderPass* renderPass = fRenderPasses.emplace_back(new GrVkRenderPass()); |
renderPass->init(gpu, *this->getCompatibleRenderPass(), colorOps, resolveOps, stencilOps); |
fLastReturnedIndex = fRenderPasses.count() - 1; |
return renderPass; |