[core] fix equality operator on Color

This commit is contained in:
Konstantin Käfer
2017-04-04 17:31:50 +03:00
committed by Ivo van Dongen
parent 1d1ea2fa24
commit 64beba3acc

View File

@@ -45,7 +45,7 @@ struct Color {
};
inline bool operator==(const Color& lhs, const Color& rhs) {
return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b && ::fabs(lhs.a - lhs.b) < 0.0001f;
return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b && ::fabs(lhs.a - rhs.a) < 0.0001f;
}
inline bool operator!=(const Color& lhs, const Color& rhs) {