cleanup warnings/weird code

This commit is contained in:
2021-02-04 07:33:23 -08:00
parent ede85ecb5d
commit a91ee62190
2 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ impl ViewRoot<gfx_device_gl::Device, ColorFormat, DepthFormat> {
let depth = &buffers.as_ref().expect("vr depth buffer").depth;
let proj_mat = vr.projection_matrix(eye, NEAR, FAR);
let mut eye_mat = vr.head_to_eye_transform(eye);
let eye_mat = vr.head_to_eye_transform(eye);
let scene_mat = scene.origin();
let viewmodel_mat = eye_mat * hmd_mat * scene_mat;
let trans = Trans { viewmodel: *viewmodel_mat.as_ref(),