example:shapes Bug fix: Structs containing js.Object can't be compared again

This commit is contained in:
Hajime Hoshi 2015-01-17 01:11:30 +09:00
parent fe69c04f8f
commit db9f5e0984

View File

@ -154,7 +154,7 @@ func useProgramTexture(c *opengl.Context, projectionMatrix []float32, texture op
} }
func useProgramRect(c *opengl.Context, projectionMatrix []float32) programFinisher { func useProgramRect(c *opengl.Context, projectionMatrix []float32) programFinisher {
if lastProgram != programRect { if !lastProgram.Equals(programRect) {
c.UseProgram(programRect) c.UseProgram(programRect)
lastProgram = programRect lastProgram = programRect
} }