diff options
author | 2020-07-27 23:01:30 +0200 | |
---|---|---|
committer | 2020-07-27 23:01:30 +0200 | |
commit | 795da598e0096ce557076db5f76c036290714188 (patch) | |
tree | 230e5af66950a1dfb88c1177c7bcc761838f1b43 /glow/src/quad.rs | |
parent | 55d2c5886f8f0859e3862cd0fa1fd34902d2138f (diff) | |
download | iced-795da598e0096ce557076db5f76c036290714188.tar.gz iced-795da598e0096ce557076db5f76c036290714188.tar.bz2 iced-795da598e0096ce557076db5f76c036290714188.zip |
Update `glow` to `0.5` in `iced_glow`
Diffstat (limited to 'glow/src/quad.rs')
-rw-r--r-- | glow/src/quad.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/glow/src/quad.rs b/glow/src/quad.rs index 3a65338a..a8fbb9e5 100644 --- a/glow/src/quad.rs +++ b/glow/src/quad.rs @@ -48,13 +48,13 @@ impl Pipeline { let matrix: [f32; 16] = Transformation::identity().into(); gl.uniform_matrix_4_f32_slice( - Some(transform_location), + Some(&transform_location), false, &matrix, ); - gl.uniform_1_f32(Some(scale_location), 1.0); - gl.uniform_1_f32(Some(screen_height_location), 0.0); + gl.uniform_1_f32(Some(&scale_location), 1.0); + gl.uniform_1_f32(Some(&screen_height_location), 0.0); gl.use_program(None); } @@ -102,7 +102,7 @@ impl Pipeline { unsafe { let matrix: [f32; 16] = transformation.into(); gl.uniform_matrix_4_f32_slice( - Some(self.transform_location), + Some(&self.transform_location), false, &matrix, ); @@ -113,7 +113,7 @@ impl Pipeline { if scale != self.current_scale { unsafe { - gl.uniform_1_f32(Some(self.scale_location), scale); + gl.uniform_1_f32(Some(&self.scale_location), scale); } self.current_scale = scale; @@ -122,7 +122,7 @@ impl Pipeline { if target_height != self.current_target_height { unsafe { gl.uniform_1_f32( - Some(self.screen_height_location), + Some(&self.screen_height_location), target_height as f32, ); } |