]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_light.c
q3bsp is still not working yet, but getting closer
[xonotic/darkplaces.git] / r_light.c
index 5cc2697948a874ac0fd021b97ea179db61d80b51..04f9a757d063908d640fd9147bc82ed641a20d7b 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -265,7 +265,7 @@ void R_MarkLights(entity_render_t *ent)
        int i, bit, bitindex;
        rdlight_t *rd;
        vec3_t lightorigin;
-       if (!gl_flashblend.integer && r_dynamic.integer && ent->model)
+       if (!gl_flashblend.integer && r_dynamic.integer && ent->model && ent->model->brushq1.numleafs)
        {
                for (i = 0, rd = r_dlight;i < r_numdlights;i++, rd++)
                {