mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
ebiten: Refactoring: Skip Concat when the argument is an identity
This commit is contained in:
parent
a29748ab2b
commit
3dcb3d7ea7
@ -66,7 +66,7 @@ func (c *ColorM) Apply(clr color.Color) color.Color {
|
|||||||
func (c *ColorM) Concat(other ColorM) {
|
func (c *ColorM) Concat(other ColorM) {
|
||||||
o := other.impl
|
o := other.impl
|
||||||
if o == nil {
|
if o == nil {
|
||||||
o = affine.ColorMIdentity{}
|
return
|
||||||
}
|
}
|
||||||
c.impl = c.affineColorM().Concat(o)
|
c.impl = c.affineColorM().Concat(o)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user