]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.c
fix uninitialized specularscale in R_Shadow_RenderSurfacesLighting
[xonotic/darkplaces.git] / r_shadow.c
index f759f7e9a5dc9cde795db667cc5617d5d2a8fcc6..fdb3f4779828ca76f3216f8412fec8b2266ffee5 100644 (file)
@@ -2575,6 +2575,7 @@ void R_Shadow_RenderSurfacesLighting(const entity_render_t *ent, const texture_t
        float specularscale;
        qboolean dopants, doshirt;
        glosstexture = r_texture_black;
+       specularscale = 0;
        if (r_shadow_gloss.integer > 0)
        {
                if (texture->skin.gloss)