]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
enabled portals on q3bsp for a small (occasionally huge) fps increase
[xonotic/darkplaces.git] / gl_rsurf.c
index fcfdf8c702ecd2c646bb1b7c3d94cb910dcacef9..82d9af45ed00a2ae66fb7e609f9440d1ca1f2e7c 100644 (file)
@@ -1593,7 +1593,7 @@ void R_WorldVisibility(void)
                return;
 
        // if possible find the leaf the view origin is in
-       viewleaf = model->brushq1.PointInLeaf ? model->brushq1.PointInLeaf(model, r_vieworigin) : NULL;
+       viewleaf = model->brush.PointInLeaf ? model->brush.PointInLeaf(model, r_vieworigin) : NULL;
        // if possible fetch the visible cluster bits
        if (model->brush.FatPVS)
                model->brush.FatPVS(model, r_vieworigin, 2, r_pvsbits, sizeof(r_pvsbits));