From: Mikko Rasa Date: Sun, 9 May 2021 16:16:00 +0000 (+0300) Subject: Remove the Renderer-less render function from PostProcessor X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=003890aeda3e2bb444d9560a8dd8f6aef924a1ee;p=libs%2Fgl.git Remove the Renderer-less render function from PostProcessor --- 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; };