DS GX: Finish box test
Vicki Pfau vi@endrift.com
Sat, 11 Mar 2017 20:25:08 -0500
1 files changed,
8 insertions(+),
2 deletions(-)
jump to
M
src/ds/gx.c
→
src/ds/gx.c
@@ -385,13 +385,19 @@
if (vx < gx->viewportX1) { return false; } - if (vx >= gx->viewportX2) { + if (vx > gx->viewportX2) { return false; } if (vy < gx->viewportY1) { return false; } - if (vy >= gx->viewportY2) { + if (vy > gx->viewportY2) { + return false; + } + if (vz < -vw) { + return false; + } + if (vz > vw) { return false; } // TODO: depth clipping