From 138ae5bad85c0c2b77a1c9a312bab39a5560ac48 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 17 Apr 2005 08:33:17 +0000 Subject: [PATCH] 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 --- r_shadow.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2