aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/shaders/second_stage/opengl_fragment.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/shaders/second_stage/opengl_fragment.glsl b/client/shaders/second_stage/opengl_fragment.glsl
index 1f3816f1a..290caf8e3 100644
--- a/client/shaders/second_stage/opengl_fragment.glsl
+++ b/client/shaders/second_stage/opengl_fragment.glsl
@@ -30,7 +30,7 @@ vec4 applyBloom(vec4 color, vec2 uv)
#endif
-#ifdef ENABLE_TONE_MAPPING
+#if ENABLE_TONE_MAPPING
/* Hable's UC2 Tone mapping parameters
A = 0.22;
@@ -84,7 +84,7 @@ void main(void)
if (uv.x > 0.5 || uv.y > 0.5)
#endif
{
-#ifdef ENABLE_TONE_MAPPING
+#if ENABLE_TONE_MAPPING
color = applyToneMapping(color);
#else
color.rgb /= 2.5; // default exposure factor, see also RenderingEngine::DEFAULT_EXPOSURE_FACTOR;