summaryrefslogtreecommitdiffstats
path: root/glow/src/triangle/gradient.rs
diff options
context:
space:
mode:
Diffstat (limited to 'glow/src/triangle/gradient.rs')
-rw-r--r--glow/src/triangle/gradient.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/glow/src/triangle/gradient.rs b/glow/src/triangle/gradient.rs
index 5225612e..d5f26877 100644
--- a/glow/src/triangle/gradient.rs
+++ b/glow/src/triangle/gradient.rs
@@ -71,14 +71,14 @@ impl Program {
linear.end.y,
);
- gl.uniform_1_u32(
+ gl.uniform_1_i32(
Some(
&self
.uniform_data
.uniform_locations
.color_stops_size_location,
),
- (linear.color_stops.len() * 2) as u32,
+ (linear.color_stops.len() * 2) as i32,
);
let mut stops = [0.0; 128];