diff --git a/internal/graphicsdriver/opengl/program.go b/internal/graphicsdriver/opengl/program.go index 70c160494..1b2c350c0 100644 --- a/internal/graphicsdriver/opengl/program.go +++ b/internal/graphicsdriver/opengl/program.go @@ -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) }