Merge pull request #311 from armansito/clip-leaf-bounds-check

[shaders] Explicitly guard writes to clip_bboxes
This commit is contained in:
Arman Uguray 2023-04-23 11:27:27 -07:00 committed by GitHub
commit 97250fb2dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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