From c442fc5cad6cfb7fd4c6e8b2f92825d6ea8e6d3e Mon Sep 17 00:00:00 2001 From: Joel-Valenciano Date: Tue, 17 Dec 2024 09:22:28 -0600 Subject: [PATCH] c/render: Remove float cast in calc_projection Part-of: --- src/xrt/compositor/render/render_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/compositor/render/render_util.c b/src/xrt/compositor/render/render_util.c index 58dc65b71..b567bf144 100644 --- a/src/xrt/compositor/render/render_util.c +++ b/src/xrt/compositor/render/render_util.c @@ -41,8 +41,8 @@ calc_projection(const struct xrt_fov *fov, struct xrt_matrix_4x4_f64 *result) const double a31 = (tan_right + tan_left) / tan_width; const double a32 = (tan_up + tan_down) / tan_height; - const float a33 = (float)(-far_plane / (far_plane - near_plane)); - const float a43 = (float)(-(far_plane * near_plane) / (far_plane - near_plane)); + const double a33 = -far_plane / (far_plane - near_plane); + const double a43 = -(far_plane * near_plane) / (far_plane - near_plane); #if 0