mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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
|
rhsb = c.body
|
||||||
rhst = c.translate
|
rhst = c.translate
|
||||||
}
|
}
|
||||||
|
if &lhsb == &rhsb && &lhst == &rhst {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
for i := range lhsb {
|
for i := range lhsb {
|
||||||
if lhsb[i] != rhsb[i] {
|
if lhsb[i] != rhsb[i] {
|
||||||
|
Loading…
Reference in New Issue
Block a user