summaryrefslogtreecommitdiff
path: root/src/core/clip.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-18 02:48:39 +0800
committerchai <chaifix@163.com>2020-07-18 02:48:39 +0800
commite5e995103377f9bb79123ef8257d8680ed0945fc (patch)
tree1831f3d2242c8173075576816b9032001580d20b /src/core/clip.c
parent275bf123ff505eef3333ba41385ed3814eb9a507 (diff)
*late culling
Diffstat (limited to 'src/core/clip.c')
-rw-r--r--src/core/clip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/clip.c b/src/core/clip.c
index 2880448..d5de4fc 100644
--- a/src/core/clip.c
+++ b/src/core/clip.c
@@ -145,7 +145,7 @@ static bool is_inside_plane(Vec4* c, Plane plane) {
case NEGATIVE_Y:
return c->y >= -c->w;
case POSITIVE_Z:
- return c->z <= +c->w;
+ return c->z <= c->w;
case NEGATIVE_Z:
return c->z >= -c->w;
default: