From 975788b612fe4484d9aa8848d3eb762b26d7989d Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 29 Jul 2018 23:18:44 +0000 Subject: [PATCH] Assume that GL_EXT_blend_subtract is supported. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12443 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2