]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_light.c
renamed brush model pvs stuff to be in brush struct instead of brushq1 and brushq3...
[xonotic/darkplaces.git] / r_light.c
index 89f36ad05328615ae200ffefe01d3fda792bcf90..b3ec3a5106b9659113db760a43d7ee140f869f87 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -295,7 +295,7 @@ void R_MarkLights(entity_render_t *ent)
                        lightpvsbytes = 0;
                        if (r_vismarklights.integer && ent->model->brush.FatPVS)
                                lightpvsbytes = ent->model->brush.FatPVS(ent->model, lightorigin, 0, lightpvs, sizeof(lightpvs));
-                       R_RecursiveMarkLights(ent, lightorigin, rd, bit, bitindex, ent->model->brushq1.nodes + ent->model->brushq1.hulls[0].firstclipnode, lightpvs, min(lightpvsbytes * 8, ent->model->brushq1.num_pvsclusters));
+                       R_RecursiveMarkLights(ent, lightorigin, rd, bit, bitindex, ent->model->brushq1.nodes + ent->model->brushq1.hulls[0].firstclipnode, lightpvs, min(lightpvsbytes * 8, ent->model->brush.num_pvsclusters));
                }
        }
 }