]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
limit r_bloom_colorexponent to 32
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Sep 2007 07:58:16 +0000 (07:58 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Sep 2007 07:58:16 +0000 (07:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7567 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 7e5c6eace3696f4962d3284a7cd0d14751b1836f..042501daadda4926813d74ff1752831094eda36c 100644 (file)
@@ -2342,7 +2342,7 @@ void R_Bloom_MakeTexture(void)
        CHECKGLERROR
        qglViewport(r_view.x, vid.height - (r_view.y + r_bloomstate.bloomheight), r_bloomstate.bloomwidth, r_bloomstate.bloomheight);CHECKGLERROR
 
-       for (x = 1;x < r_bloom_colorexponent.value;)
+       for (x = 1;x < min(r_bloom_colorexponent.value, 32);)
        {
                x *= 2;
                r = bound(0, r_bloom_colorexponent.value / x, 1);