]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix alpha blended textures in GLSL lighting path
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 Mar 2006 10:28:43 +0000 (10:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 Mar 2006 10:28:43 +0000 (10:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6162 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index fce433789a3b97940c52951371605a53ab22e47b..dfa7d99b0758cc5daaa9abed05137ce0f562db22 100644 (file)
@@ -915,7 +915,7 @@ void R_Shadow_RenderMode_StencilShadowVolumes(void)
 void R_Shadow_RenderMode_Lighting(qboolean stenciltest, qboolean transparent)
 {
        R_Shadow_RenderMode_Reset();
-       GL_BlendFunc(GL_ONE, GL_ONE);
+       GL_BlendFunc(GL_SRC_ALPHA, GL_ONE);
        GL_DepthMask(false);
        GL_DepthTest(true);
        if (!r_showtrispass)
@@ -950,7 +950,7 @@ void R_Shadow_RenderMode_Lighting(qboolean stenciltest, qboolean transparent)
                R_Mesh_TexBind(5, R_GetTexture(r_texture_white)); // pants
                R_Mesh_TexBind(6, R_GetTexture(r_texture_white)); // shirt
                //R_Mesh_TexMatrix(3, r_shadow_entitytolight); // light filter matrix
-               GL_BlendFunc(GL_ONE, GL_ONE);
+               GL_BlendFunc(GL_SRC_ALPHA, GL_ONE);
                GL_ColorMask(r_refdef.colormask[0], r_refdef.colormask[1], r_refdef.colormask[2], 0);
                CHECKGLERROR
        }