From c8fa937a0a136a359189fa2d85a09a5ee85535e1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 20 Jul 2020 02:12:31 +0900 Subject: [PATCH] shaderir: Format --- internal/shaderir/glsl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/shaderir/glsl.go b/internal/shaderir/glsl.go index 38141eeb9..8b18672a7 100644 --- a/internal/shaderir/glsl.go +++ b/internal/shaderir/glsl.go @@ -121,6 +121,9 @@ func (p *Program) Glsl() (vertexShader, fragmentShader string) { fslines = append(fslines, fmt.Sprintf("varying %s;", p.glslVarDecl(&t, fmt.Sprintf("V%d", i)))) } for _, f := range p.Funcs { + if len(fslines) > 0 { + fslines = append(fslines, "") + } fslines = append(fslines, p.glslFunc(&f)...) }