Fixed issues with old GL versions ( <= 2.1 )
This commit is contained in:
parent
d9f408d1c2
commit
9841d19381
5 changed files with 22 additions and 19 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue