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

This commit is contained in:
Pelle Johnsen
2020-08-19 20:06:24 +02:00
committed by GitHub
parent c5a302b769
commit b0f1f6285a

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