mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicsdriver/opengl: Optimization
This commit is contained in:
parent
b74a4a0275
commit
9d51356eef
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user