From: divverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Fri, 25 Nov 2011 13:13:06 +0000 (+0000)
Subject: fix another bug with HDR bloom
X-Git-Tag: xonotic-v0.6.0~102^2~48
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc55d85eaeb9335bb71e7e15991b4d9b0353efae;p=xonotic%2Fdarkplaces.git

fix another bug with HDR bloom

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11571 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/gl_rmain.c b/gl_rmain.c
index fa02c335..b2f97887 100644
--- a/gl_rmain.c
+++ b/gl_rmain.c
@@ -6277,6 +6277,8 @@ static void R_Bloom_MakeTexture(void)
 		}
 		else
 		{
+			if(x <= 2)
+				GL_Clear(GL_COLOR_BUFFER_BIT, NULL, 1.0f, 128);
 			GL_BlendFunc(GL_SRC_COLOR, GL_ZERO); // square it
 			GL_Color(1,1,1,1); // no fix factor supported here
 		}