diff --git a/include/omath/projection/camera.hpp b/include/omath/projection/camera.hpp index 64262d1..a427a2e 100644 --- a/include/omath/projection/camera.hpp +++ b/include/omath/projection/camera.hpp @@ -398,7 +398,7 @@ namespace omath::projection return true; if (data[1] < -1.0f - eps || data[1] > 1.0f + eps) return true; - return is_ndc_z_value_out_of_bounds(data[3]); + return is_ndc_z_value_out_of_bounds(data[2]); } template [[nodiscard]]