commit 87661b13c52081c105baaf1f12549296532793ca
parent e43066663cad873b8e004f0dc4cf49bcb8ea6564
Author: Michael Savage <mikejsavage@gmail.com>
Date: Fri, 2 Aug 2019 20:21:44 +0300
Fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bsp.cc b/bsp.cc
@@ -330,7 +330,7 @@ static v2 screen_pos( const m4 & P, const m4 & V, v3 camera_pos, v3 target, v2 c
*clamped = false;
v4 clip = P * V * v4( target, 1.0 );
- if( abs( clip.z ) < near_plane_depth )
+ if( abs( clip.z ) == 0 )
return v2( 0, 0 );
v2 res = clip.xy() / clip.z;