From 9d51356eef479a02c8bc46243b22a3e95c0103a0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 31 Oct 2021 05:17:23 +0900 Subject: [PATCH] internal/graphicsdriver/opengl: Optimization --- internal/graphicsdriver/opengl/graphics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphicsdriver/opengl/graphics.go b/internal/graphicsdriver/opengl/graphics.go index bb9ccc396..5640037b0 100644 --- a/internal/graphicsdriver/opengl/graphics.go +++ b/internal/graphicsdriver/opengl/graphics.go @@ -331,7 +331,7 @@ func (g *Graphics) DrawTriangles(dstID driver.ImageID, srcIDs [graphics.ShaderIm for i, v := range uniforms { const offset = graphics.PreservedUniformVariablesNum - g.uniformVars[i+offset].name = fmt.Sprintf("U%d", i+offset) + g.uniformVars[i+offset].name = g.uniformVariableName(i + offset) g.uniformVars[i+offset].value = v g.uniformVars[i+offset].typ = shader.ir.Uniforms[i+offset] }