From 3dcb3d7ea7b904ea9cab42fa2795bae3a147f221 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 18 Aug 2021 01:39:04 +0900 Subject: [PATCH] ebiten: Refactoring: Skip Concat when the argument is an identity --- colorm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorm.go b/colorm.go index 08bd5c3bb..ac24568e6 100644 --- a/colorm.go +++ b/colorm.go @@ -66,7 +66,7 @@ func (c *ColorM) Apply(clr color.Color) color.Color { func (c *ColorM) Concat(other ColorM) { o := other.impl if o == nil { - o = affine.ColorMIdentity{} + return } c.impl = c.affineColorM().Concat(o) }