internal/graphicsdriver/opengl: Optimization

This commit is contained in:
Hajime Hoshi 2021-01-26 00:45:17 +09:00
parent e60e6ca5ac
commit b8694aa66a

View File

@ -259,7 +259,9 @@ func (g *Graphics) useProgram(program program, uniforms []uniformVariable, textu
} }
g.state.lastProgram = program g.state.lastProgram = program
g.state.lastUniforms = map[string]interface{}{} for k := range g.state.lastUniforms {
delete(g.state.lastUniforms, k)
}
g.state.lastActiveTexture = 0 g.state.lastActiveTexture = 0
g.context.activeTexture(0) g.context.activeTexture(0)
} }