mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-in] Fix panic when calculating global use
This commit is contained in:
committed by
Dzmitry Malyshau
parent
d8dc12e47b
commit
15c846cd0e
@@ -539,7 +539,7 @@ impl Program<'_> {
|
||||
.take(callee_len.saturating_sub(caller_len)),
|
||||
);
|
||||
|
||||
for i in 0..callee_len.max(caller_len) {
|
||||
for i in 0..callee_len.min(caller_len) {
|
||||
let callee_use = function_arg_use[function.index()][i];
|
||||
function_arg_use[caller.index()][i] |= callee_use
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user