internal/graphicsdriver/opengl: Optimization

This commit is contained in:
Hajime Hoshi 2021-10-31 05:17:23 +09:00
parent b74a4a0275
commit 9d51356eef

View File

@ -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]
}