]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.c
changed collision code to report supercontents, surfaceflags, and texture that was...
[xonotic/darkplaces.git] / r_shadow.c
index dfa7d99b0758cc5daaa9abed05137ce0f562db22..a255a51f714dc3cb1bffafab7ecb40ef2cda6867 100644 (file)
@@ -2267,6 +2267,8 @@ void R_Shadow_SetupEntityLight(const entity_render_t *ent)
 
 void R_Shadow_DrawEntityLight(entity_render_t *ent, int numsurfaces, int *surfacelist)
 {
+       if (!ent->model->DrawLight)
+               return;
        R_Shadow_SetupEntityLight(ent);
        if (ent == r_refdef.worldentity)
                ent->model->DrawLight(ent, numsurfaces, surfacelist);