mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
shader: Bug fix: Wrong variable index at declaration
This commit is contained in:
parent
a0494210c3
commit
240e20ad87
@ -302,7 +302,7 @@ func (cs *compileState) parseDecl(b *block, d ast.Decl) ([]shaderir.Stmt, bool)
|
||||
continue
|
||||
}
|
||||
|
||||
base := len(b.vars)
|
||||
base := b.totalLocalVariableNum()
|
||||
b.vars = append(b.vars, vs...)
|
||||
|
||||
if len(inits) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user