From 6e6b8e63b6c374435da12ed2e4b823087fec6c56 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Wed, 10 Sep 2014 01:37:36 +0200 Subject: [PATCH] Inverted logic for compute shaders --- src/graphics/post_processing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/post_processing.cpp b/src/graphics/post_processing.cpp index 0075fa354..139b6f023 100644 --- a/src/graphics/post_processing.cpp +++ b/src/graphics/post_processing.cpp @@ -337,7 +337,7 @@ void PostProcessing::renderGaussian17TapBlur(FrameBuffer &in_fbo, FrameBuffer &a assert(in_fbo.getWidth() == auxiliary.getWidth() && in_fbo.getHeight() == auxiliary.getHeight()); float inv_width = 1.0f / in_fbo.getWidth(), inv_height = 1.0f / in_fbo.getHeight(); { - if (irr_driver->hasARBComputeShaders()) + if (!irr_driver->hasARBComputeShaders()) { auxiliary.Bind(); FullScreenShader::Gaussian17TapHShader::getInstance()->SetTextureUnits(createVector(in_fbo.getRTT()[0], irr_driver->getFBO(FBO_LINEAR_DEPTH).getRTT()[0])); @@ -355,7 +355,7 @@ void PostProcessing::renderGaussian17TapBlur(FrameBuffer &in_fbo, FrameBuffer &a } } { - if (irr_driver->hasARBComputeShaders()) + if (!irr_driver->hasARBComputeShaders()) { in_fbo.Bind();