mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-08 20:01:30 +11:00
Merge pull request #311 from armansito/clip-leaf-bounds-check
[shaders] Explicitly guard writes to clip_bboxes
This commit is contained in:
commit
97250fb2dc
|
@ -200,5 +200,7 @@ fn main(
|
|||
bbox = vec4(-1e9, -1e9, 1e9, 1e9);
|
||||
}
|
||||
}
|
||||
clip_bboxes[global_id.x] = bbox;
|
||||
if global_id.x < config.n_clip {
|
||||
clip_bboxes[global_id.x] = bbox;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue