diff options
author | 2020-05-21 19:50:53 +0200 | |
---|---|---|
committer | 2020-05-21 19:50:53 +0200 | |
commit | bbfb1c040c92e36b3d23a2167ad3432c819b9668 (patch) | |
tree | 7fd555e6735d341acd3e5f53e69e4892b26fd18e /glow/src/triangle.rs | |
parent | 2798d4935e14a2453adc9e85c1037cac3b79a8c9 (diff) | |
download | iced-bbfb1c040c92e36b3d23a2167ad3432c819b9668.tar.gz iced-bbfb1c040c92e36b3d23a2167ad3432c819b9668.tar.bz2 iced-bbfb1c040c92e36b3d23a2167ad3432c819b9668.zip |
Update to latest `glow`
Diffstat (limited to 'glow/src/triangle.rs')
-rw-r--r-- | glow/src/triangle.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/glow/src/triangle.rs b/glow/src/triangle.rs index 3f4aaa1b..489ceaff 100644 --- a/glow/src/triangle.rs +++ b/glow/src/triangle.rs @@ -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; } |