From abbd54ffa0903768b37adf4d747f87eb0d0918f4 Mon Sep 17 00:00:00 2001 From: hiker Date: Thu, 21 May 2015 16:43:41 +1000 Subject: [PATCH] Replaced another global function reference. --- src/graphics/post_processing.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/graphics/post_processing.cpp b/src/graphics/post_processing.cpp index cfe8c927d..49e300571 100644 --- a/src/graphics/post_processing.cpp +++ b/src/graphics/post_processing.cpp @@ -178,7 +178,7 @@ public: // ============================================================================ class Gaussian6HBlurShader : public TextureShader + core::vector2df, float> { public: Gaussian6HBlurShader() @@ -1105,10 +1105,8 @@ void PostProcessing::renderHorizontalBlur(FrameBuffer &in_fbo, { auxiliary.Bind(); - Gaussian6HBlurShader::getInstance() - ->setTextureUnits(in_fbo.getRTT()[0]); - DrawFullScreenEffect - (core::vector2df(inv_width, inv_height), 2.0f); + Gaussian6HBlurShader::getInstance()->render(in_fbo, in_fbo.getWidth(), + in_fbo.getHeight(), 2.0f ); } { in_fbo.Bind();