[glsl-in] Fix panic when calculating global use

This commit is contained in:
João Capucho authored and Dzmitry Malyshau committed 2021-06-09 12:54:58 -04:00
1 parent d8dc12e47b
commit 15c846cd0e
1 file changed
+1 -1
+1 -1
View File
@@ -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
}