From 4a60c547109bd40d1879e479adac3f24c2f77b6e Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Fri, 30 Sep 2016 10:13:05 +0200 Subject: [PATCH] Shouldn't this be 6? --- tests/caveview/cave_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/caveview/cave_render.c b/tests/caveview/cave_render.c index 7ac96ec..3ed4628 100644 --- a/tests/caveview/cave_render.c +++ b/tests/caveview/cave_render.c @@ -699,7 +699,7 @@ static int test_plane(plane *p, float x0, float y0, float z0, float x1, float y1 static int is_box_in_frustum(float *bmin, float *bmax) { int i; - for (i=0; i < 5; ++i) + for (i=0; i < 6; ++i) if (!test_plane(&frustum[i], bmin[0], bmin[1], bmin[2], bmax[0], bmax[1], bmax[2])) return 0; return 1;