mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
shaderir: Remove unnecessary empty lines
This commit is contained in:
parent
38dcadb233
commit
bab05874cd
@ -128,10 +128,10 @@ func (p *Program) Glsl() (vertexShader, fragmentShader string) {
|
||||
for i, t := range p.Varyings {
|
||||
fslines = append(fslines, fmt.Sprintf("varying %s;", p.glslVarDecl(&t, fmt.Sprintf("V%d", i))))
|
||||
}
|
||||
if len(fslines) > 0 {
|
||||
fslines = append(fslines, "")
|
||||
}
|
||||
for _, f := range p.Funcs {
|
||||
if len(fslines) > 0 {
|
||||
fslines = append(fslines, "")
|
||||
}
|
||||
fslines = append(fslines, p.glslFunc(&f, true)...)
|
||||
}
|
||||
for _, f := range p.Funcs {
|
||||
|
Loading…
Reference in New Issue
Block a user