mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-13 17:20:09 +00:00
comp/render: Silence warning
This commit is contained in:
parent
fe7cf853e9
commit
b999b326dc
|
@ -37,8 +37,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 = -far_plane / (far_plane - near_plane);
|
||||
const float a43 = -(far_plane * near_plane) / (far_plane - near_plane);
|
||||
const float a33 = (float)(-far_plane / (far_plane - near_plane));
|
||||
const float a43 = (float)(-(far_plane * near_plane) / (far_plane - near_plane));
|
||||
|
||||
|
||||
#if 1
|
||||
|
@ -102,6 +102,6 @@ render_calc_time_warp_matrix(const struct xrt_pose *src_pose,
|
|||
|
||||
// Convert from f64 to f32.
|
||||
for (int i = 0; i < 16; i++) {
|
||||
matrix->v[i] = result.v[i];
|
||||
matrix->v[i] = (float)result.v[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue