Update to latest glow

This commit is contained in:
Héctor Ramón Jiménez 2020-05-21 19:50:53 +02:00
parent 2798d4935e
commit bbfb1c040c
3 changed files with 17 additions and 25 deletions

View file

@ -41,11 +41,8 @@ impl Pipeline {
unsafe {
gl.use_program(Some(program));
gl.uniform_matrix_4_f32_slice(
Some(0),
false,
&Transformation::identity().into(),
);
let transform: [f32; 16] = Transformation::identity().into();
gl.uniform_matrix_4_f32_slice(Some(&0), false, &transform);
gl.use_program(None);
}
@ -177,11 +174,8 @@ impl Pipeline {
unsafe {
if self.current_transform != transform {
gl.uniform_matrix_4_f32_slice(
Some(0),
false,
&transform.into(),
);
let matrix: [f32; 16] = transform.into();
gl.uniform_matrix_4_f32_slice(Some(&0), false, &matrix);
self.current_transform = transform;
}