fix rtlighting on textureless surfaces (uses r_texture_white instead of no texture)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Apr 2005 08:33:17 +0000 (08:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Apr 2005 08:33:17 +0000 (08:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5188 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index ad8d9b2..f74c32e 100644 (file)
@@ -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)