]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Assume that GL_EXT_blend_subtract is supported.
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Jul 2018 23:18:44 +0000 (23:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Jul 2018 23:18:44 +0000 (23:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12443 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 527a0bef559537e634a6e79237f16c7adc37df63..56febbd8b66c5d60d3beebc13aa90d4b7cb2f600 100644 (file)
@@ -2923,7 +2923,7 @@ void R_Shadow_RenderLighting(int texturenumsurfaces, const msurface_t **textures
        VectorMultiply(specularcolor, rsurface.rtlight->currentcolor, specularcolor);
        if (VectorLength2(ambientcolor) + VectorLength2(diffusecolor) + VectorLength2(specularcolor) < (1.0f / 1048576.0f))
                return;
-       negated = (rsurface.rtlight->currentcolor[0] + rsurface.rtlight->currentcolor[1] + rsurface.rtlight->currentcolor[2] < 0) && vid.support.ext_blend_subtract;
+       negated = (rsurface.rtlight->currentcolor[0] + rsurface.rtlight->currentcolor[1] + rsurface.rtlight->currentcolor[2] < 0);
        if(negated)
        {
                VectorNegate(ambientcolor, ambientcolor);
@@ -4529,7 +4529,7 @@ static void R_DrawCorona(rtlight_t *rtlight, float cscale, float scale)
        if (VectorLength(color) > (1.0f / 256.0f))
        {
                float vertex3f[12];
-               qboolean negated = (color[0] + color[1] + color[2] < 0) && vid.support.ext_blend_subtract;
+               qboolean negated = (color[0] + color[1] + color[2] < 0);
                if(negated)
                {
                        VectorNegate(color, color);