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:
egdaniel 2014-08-21 06:47:50 -07:00 committed by Commit bot
parent af28dc6030
commit 01a492f959

View File

@ -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);
} }
/** /**