From: havoc Date: Sun, 17 Apr 2005 08:33:17 +0000 (+0000) Subject: fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture) X-Git-Tag: xonotic-v0.1.0preview~4991 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=138ae5bad85c0c2b77a1c9a312bab39a5560ac48 fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5188 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index ad8d9b29..f74c32e9 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -1553,6 +1553,8 @@ void R_Shadow_RenderLighting(int firstvertex, int numvertices, int numtriangles, int renders; float color[3], color2[3], colorscale; rmeshstate_t m; + if (!basetexture) + basetexture = r_texture_white; if (!bumptexture) bumptexture = r_texture_blanknormalmap; if (!lightcolorbase)