From 4ef85d692ce72c0959a7bc782f79eb55d831db0b Mon Sep 17 00:00:00 2001 From: hiker Date: Wed, 20 May 2015 09:09:34 +1000 Subject: [PATCH] Replaced one more call to DrawFulLScreenEffect. --- src/graphics/post_processing.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/graphics/post_processing.cpp b/src/graphics/post_processing.cpp index bcc92277e..fc7675e8b 100644 --- a/src/graphics/post_processing.cpp +++ b/src/graphics/post_processing.cpp @@ -251,6 +251,12 @@ public: assignUniforms(); assignSamplerNames(0, "tex", ST_NEAREST_FILTERED); } // BloomShader + // ------------------------------------------------------------------------ + void render(GLuint in) + { + BloomShader::getInstance()->setTextureUnits(in); + drawFullScreenEffect(); + } // render }; // BloomShader // ============================================================================ @@ -570,7 +576,7 @@ public: void render(GLuint tex, const core::vector2df &sunpos) { setTextureUnits(tex); - DrawFullScreenEffect(sunpos); + drawFullScreenEffect(sunpos); } // render }; // GodRayShader @@ -812,8 +818,7 @@ void PostProcessing::update(float dt) // ---------------------------------------------------------------------------- static void renderBloom(GLuint in) { - BloomShader::getInstance()->setTextureUnits(in); - DrawFullScreenEffect(); + BloomShader::getInstance()->render(in); } // renderBloom // ----------------------------------------------------------------------------