]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
fix a bug where map becomes invisible (just sky) when the nearclip plane
[xonotic/darkplaces.git] / gl_rmain.c
index 47b4c2653486ca6ee4b2079234e37de15792c671..f0b636c3060014927f7ce2bcf13ac0a496d27bb5 100644 (file)
@@ -1846,6 +1846,9 @@ int R_CullBox(const vec3_t mins, const vec3_t maxs)
        mplane_t *p;
        for (i = 0;i < r_view.numfrustumplanes;i++)
        {
+               // skip nearclip plane, it often culls portals when you are very close, and is almost never useful
+               if (i == 4)
+                       continue;
                p = r_view.frustum + i;
                switch(p->signbits)
                {