DRW: Fix occlusion culling.

This commit is contained in:
2018-03-06 16:26:13 +01:00
parent 85b68aaf7f
commit 2af6520007

View File

@@ -469,7 +469,7 @@ static void draw_clipping_setup_from_view(void)
e = farpoint[2];
s = nearpoint[2];
/* distance to view Z axis */
f = len_v2(nearpoint);
f = len_v2(farpoint);
/* get corresponding point on the near plane */
mul_v2_v2fl(farxy, farpoint, s/e);
/* this formula preserve the sign of n */