Fix == operator in GrTextureDomain so we don't compair uninitilized values
We were getting random behavior when comparing two GrTexureDomains since fDomain was not initialized when the mode was set to ignore. BUG=skia: R=bsalomon@google.com Author: egdaniel@google.com Review URL: https://codereview.chromium.org/469393007
This commit is contained in:
parent
af28dc6030
commit
01a492f959
@ -68,7 +68,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool operator== (const GrTextureDomain& that) const {
|
bool operator== (const GrTextureDomain& that) const {
|
||||||
return fMode == that.fMode && fDomain == that.fDomain;
|
return fMode == that.fMode && (kIgnore_Mode == fMode || fDomain == that.fDomain);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user