diff options
author | 2014-08-21 06:47:50 -0700 | |
---|---|---|
committer | 2014-08-21 06:47:51 -0700 | |
commit | 01a492f959e886f89995c6d1bbcd9f7bb7639726 (patch) | |
tree | f142ea848e3c6a9483a805478dfe4b0766f1ab9d /src | |
parent | af28dc6030ebb3007f7968b3d5d16637284d254a (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/effects/GrTextureDomain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h index 7796afe4c4..577098a4ad 100644 --- a/src/gpu/effects/GrTextureDomain.h +++ b/src/gpu/effects/GrTextureDomain.h @@ -68,7 +68,7 @@ public: } bool operator== (const GrTextureDomain& that) const { - return fMode == that.fMode && fDomain == that.fDomain; + return fMode == that.fMode && (kIgnore_Mode == fMode || fDomain == that.fDomain); } /** |