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
e60e6ca5ac
commit
b8694aa66a
@ -259,7 +259,9 @@ func (g *Graphics) useProgram(program program, uniforms []uniformVariable, textu
|
||||
}
|
||||
|
||||
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.context.activeTexture(0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user