From: havoc Date: Sun, 29 Jul 2018 23:18:44 +0000 (+0000) Subject: Assume that GL_EXT_blend_subtract is supported. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=975788b612fe4484d9aa8848d3eb762b26d7989d;p=xonotic%2Fdarkplaces.git Assume that GL_EXT_blend_subtract is supported. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12443 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 527a0bef..56febbd8 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -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);