[glsl-new] set global_usgae on functions (#138)

This commit is contained in:
Pelle Johnsen authored and GitHub committed 2020-08-19 14:06:24 -04:00
1 parent c5a302b769
commit b0f1f6285a
1 file changed
+1
+1
View File
@@ -753,6 +753,7 @@ pomelo! {
std::mem::swap(&mut f.local_variables, &mut extra.context.local_variables);
extra.context.clear_scopes();
f.body = cs;
f.global_usage = crate::GlobalUse::scan(&f.expressions, &f.body, &extra.global_variables);
f
};
}