Fix panic in Transformation::scale

This commit is contained in:
Héctor Ramón Jiménez 2019-11-06 19:35:28 +01:00
parent 2026048053
commit 6216f197e9

View file

@ -29,7 +29,7 @@ impl Transformation {
/// Creates a scale transformation.
pub fn scale(x: f32, y: f32) -> Transformation {
Transformation(Mat4::from_scale(Vec3::new(x, y, 0.0)))
Transformation(Mat4::from_scale(Vec3::new(x, y, 1.0)))
}
}