mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
affine: Optimization Equals
This commit is contained in:
parent
cdfee9fd74
commit
f1ba3e5894
@ -139,6 +139,9 @@ func (c *ColorM) Equals(other *ColorM) bool {
|
||||
rhsb = c.body
|
||||
rhst = c.translate
|
||||
}
|
||||
if &lhsb == &rhsb && &lhst == &rhst {
|
||||
return true
|
||||
}
|
||||
|
||||
for i := range lhsb {
|
||||
if lhsb[i] != rhsb[i] {
|
||||
|
Loading…
Reference in New Issue
Block a user