mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-26 17:37:34 +00:00
c/render: Remove float cast in calc_projection
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2377>
This commit is contained in:
parent
06986621d6
commit
c442fc5cad
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue