Fix a mistake with aspect calculation

This commit is contained in:
Thinkofname 2016-03-22 11:27:57 +00:00
parent 229fafbd9c
commit 47297146cf
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ impl Renderer {
self.perspective_matrix = cgmath::Matrix4::from(
cgmath::PerspectiveFov {
fovy: cgmath::Rad::from(cgmath::Deg{s: 90f32}),
aspect: (width / height) as f32,
aspect: (width as f32 / height as f32),
near: 0.1f32,
far: 500.0f32,
}