summaryrefslogtreecommitdiff
path: root/src/render/pass/Pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/pass/Pass.cpp')
-rw-r--r--src/render/pass/Pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/pass/Pass.cpp b/src/render/pass/Pass.cpp
index 32296ad7..4ad1d444 100644
--- a/src/render/pass/Pass.cpp
+++ b/src/render/pass/Pass.cpp
@@ -18,8 +18,8 @@ bool CRenderPass::single() const {
return m_passElements.size() == 1;
}
-void CRenderPass::add(SP<IPassElement> el) {
- m_passElements.emplace_back(makeShared<SPassElementData>(CRegion{}, el));
+void CRenderPass::add(UP<IPassElement>&& el) {
+ m_passElements.emplace_back(makeUnique<SPassElementData>(CRegion{}, std::move(el)));
}
void CRenderPass::simplify() {