[glsl-in] Fix for if being in the wrong body

This commit is contained in:
João Capucho authored and Dzmitry Malyshau committed 2021-06-01 21:12:46 -04:00
1 parent 4cb036b335
commit 3699034ccc
1 file changed
+1 -1
+1 -1
View File
@@ -1491,7 +1491,7 @@ impl<'source, 'program, 'options> Parser<'source, 'program, 'options> {
ctx.emit_flush(&mut block);
ctx.emit_start();
body.push(Statement::If {
block.push(Statement::If {
condition,
accept: vec![Statement::Break],
reject: Block::new(),