]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 ad8d9b29c9199dbd7727f36011a0301096797819..f74c32e98b81857ef78ba7a2c8d7139168bd6797 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)