From 8aebfdb3abac02639ba6936e3a76912089ba24ad Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 1 Aug 2016 11:29:28 +0200 Subject: [PATCH] - fixed: gl_bloom_amount may never be 0. --- src/gl/renderer/gl_postprocess.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_postprocess.cpp b/src/gl/renderer/gl_postprocess.cpp index 5ccacf3053..d5b4005b65 100644 --- a/src/gl/renderer/gl_postprocess.cpp +++ b/src/gl/renderer/gl_postprocess.cpp @@ -76,7 +76,11 @@ // //========================================================================== CVAR(Bool, gl_bloom, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); -CVAR(Float, gl_bloom_amount, 1.4f, 0) +CUSTOM_CVAR(Float, gl_bloom_amount, 1.4f, 0) +{ + if (self < 0.1f) self = 0.1f; +} + CVAR(Float, gl_exposure, 0.0f, 0) CUSTOM_CVAR(Int, gl_tonemap, 0, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)