glasm: Support textures used in more than one stage

This commit is contained in:
ReinUsesLisp 2021-05-18 21:04:09 -03:00 committed by ameerj
parent 3d3ed53511
commit 8b7d5912d6
4 changed files with 25 additions and 5 deletions

View file

@ -312,8 +312,8 @@ std::string_view StageHeader(Stage stage) {
}
} // Anonymous namespace
std::string EmitGLASM(const Profile&, IR::Program& program, Bindings&) {
EmitContext ctx{program};
std::string EmitGLASM(const Profile&, IR::Program& program, Bindings& bindings) {
EmitContext ctx{program, bindings};
Precolor(ctx, program);
EmitCode(ctx, program);
std::string header{StageHeader(program.stage)};