Fixed issue where OpenGL would not render both shaders at once under certain circumstances.

This commit is contained in:
shan 2022-09-29 17:13:32 -07:00
parent 0f434c74d6
commit e25f3d3dea
2 changed files with 23 additions and 31 deletions

View file

@ -90,7 +90,7 @@ fn generate_box(frame: &mut Frame, bounds: Size) -> bool {
let gradient = |top_left: Point, bottom_right: Point| -> Gradient {
let mut builder = Gradient::linear(top_left, bottom_right);
let stops = thread_rng().gen_range(1..64u32);
let stops = thread_rng().gen_range(1..10u32);
let mut i = 0;
while i <= stops {