aboutsummaryrefslogtreecommitdiff
path: root/src/client/render/pipeline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/render/pipeline.h')
-rw-r--r--src/client/render/pipeline.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/render/pipeline.h b/src/client/render/pipeline.h
index 771c6f1d5..354624102 100644
--- a/src/client/render/pipeline.h
+++ b/src/client/render/pipeline.h
@@ -390,9 +390,10 @@ public:
* @return RenderStep* Pointer to the created step for further configuration.
*/
template<typename T, typename... Args>
- RenderStep *addStep(Args&&... args) {
+ T *addStep(Args&&... args) {
T* result = own(std::make_unique<T>(std::forward<Args>(args)...));
- return addStep(result);
+ addStep(result);
+ return result;
}
RenderSource *getInput();