mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +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.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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user