diff --git a/src/graphics/post_processing.cpp b/src/graphics/post_processing.cpp index 9505a8282..8a73d05d9 100644 --- a/src/graphics/post_processing.cpp +++ b/src/graphics/post_processing.cpp @@ -205,15 +205,6 @@ void PostProcessing::update(float dt) } } // update -template -static void DrawFullScreenEffect(Args...args) -{ - glUseProgram(T::getInstance()->Program); - glBindVertexArray(SharedObject::FullScreenQuadVAO); - T::getInstance()->setUniforms(args...); - glDrawArrays(GL_TRIANGLES, 0, 3); -} - static void renderBloom(GLuint in) { diff --git a/src/graphics/shaders.hpp b/src/graphics/shaders.hpp index c9b43c2fc..43a9a56a0 100644 --- a/src/graphics/shaders.hpp +++ b/src/graphics/shaders.hpp @@ -370,6 +370,15 @@ public: }; } +template +static void DrawFullScreenEffect(Args...args) +{ + glUseProgram(T::getInstance()->Program); + glBindVertexArray(SharedObject::FullScreenQuadVAO); + T::getInstance()->setUniforms(args...); + glDrawArrays(GL_TRIANGLES, 0, 3); +} + namespace FullScreenShader {