]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix another bug with HDR bloom
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Nov 2011 13:13:06 +0000 (13:13 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Nov 2011 13:13:06 +0000 (13:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11571 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index fa02c335663adc98c11a62a86d23121fcbc8f1c6..b2f978874cba3482763f448a891587b2a055c030 100644 (file)
@@ -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
                }