From 003890aeda3e2bb444d9560a8dd8f6aef924a1ee Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 9 May 2021 19:16:00 +0300 Subject: [PATCH] Remove the Renderer-less render function from PostProcessor --- source/effects/postprocessor.cpp | 6 ------ source/effects/postprocessor.h | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/source/effects/postprocessor.cpp b/source/effects/postprocessor.cpp index 2a490a46..80c081f4 100644 --- a/source/effects/postprocessor.cpp +++ b/source/effects/postprocessor.cpp @@ -7,12 +7,6 @@ namespace Msp { namespace GL { -void PostProcessor::render(Renderer &, const Texture2D &color, const Texture2D &depth) -{ - render(color, depth); -} - - PostProcessor::Template::Template(): size_divisor(1) { } diff --git a/source/effects/postprocessor.h b/source/effects/postprocessor.h index aba1b0e6..06e03c3f 100644 --- a/source/effects/postprocessor.h +++ b/source/effects/postprocessor.h @@ -42,9 +42,7 @@ public: virtual ~PostProcessor() { } /// Renders the effect. - virtual void render(const Texture2D &, const Texture2D &) { } - - virtual void render(Renderer &, const Texture2D &, const Texture2D &); + virtual void render(Renderer &, const Texture2D &, const Texture2D &) = 0; virtual void set_debug_name(const std::string &) = 0; }; -- 2.45.2