emit_glasm: Enable ARB_draw_buffers when needed

This commit is contained in:
ReinUsesLisp 2021-05-16 17:52:30 -03:00 committed by ameerj
parent 3c06293e20
commit db2f0f4108
2 changed files with 5 additions and 1 deletions

View file

@ -71,7 +71,7 @@ EmitContext::EmitContext(IR::Program& program) {
if (index == 0) {
Add("OUTPUT frag_color0=result.color;");
} else {
Add("OUTPUT frag_color{}[]=result.color[{}];", index, index);
Add("OUTPUT frag_color{}=result.color[{}];", index, index);
}
}
for (size_t index = 0; index < program.info.stores_generics.size(); ++index) {