mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-in] Fix for if being in the wrong body
This commit is contained in:
committed by
Dzmitry Malyshau
parent
4cb036b335
commit
3699034ccc
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user