]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
batch by lightmap as well as texture, this cures problems with vertex lit surfaces...
[xonotic/darkplaces.git] / gl_rsurf.c
index 5db3bcf8c939fcc342fcdd68cf5653c0d43cde62..e21fcc1a7acebbcf2ebdc485ab97d7fa38df0e5b 100644 (file)
@@ -724,7 +724,7 @@ void R_Q1BSP_DrawShadowVolume(entity_render_t *ent, vec3_t relativelightorigin,
        int f = 0;
        float projectdistance = lightradius + model->radius*2 + r_shadow_projectdistance.value;
        vec3_t modelorg;
-       texture_t *t = NULL, *texture;
+       texture_t *t = NULL, *texture = NULL;
        const int maxsurfacelist = 1024;
        int numsurfacelist = 0;
        msurface_t *surfacelist[1024];