diff --git a/box.go b/box.go index baf968e..5c46d92 100644 --- a/box.go +++ b/box.go @@ -117,6 +117,7 @@ func (this *box) SetColor (c color.Color) { } func (this *box) SetTexture (texture canvas.Texture) { + if this.texture == texture { return } this.texture = xcanvas.AssertTexture(texture) this.invalidateDraw() }