Fixed issues with old GL versions ( <= 2.1 )

This commit is contained in:
bungoboingo 2022-11-08 11:32:27 -08:00
parent d9f408d1c2
commit 9841d19381
5 changed files with 22 additions and 19 deletions

View file

@ -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];