From db9f5e0984cf01d4e78235a0932859bfb37e0354 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 17 Jan 2015 01:11:30 +0900 Subject: [PATCH] example:shapes Bug fix: Structs containing js.Object can't be compared again --- internal/graphics/internal/shader/program.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }