diff --git a/internal/graphics/internal/shader/program.go b/internal/graphics/internal/shader/program.go index f1a52b1a8..ebe22d285 100644 --- a/internal/graphics/internal/shader/program.go +++ b/internal/graphics/internal/shader/program.go @@ -154,7 +154,7 @@ func useProgramTexture(c *opengl.Context, projectionMatrix []float32, texture op } func useProgramRect(c *opengl.Context, projectionMatrix []float32) programFinisher { - if lastProgram != programRect { + if !lastProgram.Equals(programRect) { c.UseProgram(programRect) lastProgram = programRect }