Skip to content

Commit

Permalink
Call ctx.emit_start after flushing
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored and kvark committed Mar 28, 2022
1 parent a48faf5 commit 26537c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/front/glsl/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,7 @@ impl MacroCall {
),
MacroCall::Barrier => {
ctx.emit_flush(body);
ctx.emit_start();
body.push(crate::Statement::Barrier(crate::Barrier::all()), meta);
return Ok(None);
}
Expand Down

0 comments on commit 26537c1

Please sign in to comment.