Small fix for RODrawState

BUG=skia:
R=egdaniel@google.com, joshualitt@google.com

Author: joshualitt@chromium.org

Review URL: https://codereview.chromium.org/545273002
This commit is contained in:
joshualitt 2014-09-05 10:45:30 -07:00 committed by Commit bot
parent 4f90c50b56
commit 5a80be2241

View File

@ -40,14 +40,14 @@ bool GrRODrawState::isEqual(const GrRODrawState& that) const {
bool explicitLocalCoords = this->hasLocalCoordAttribute();
if (this->hasGeometryProcessor()) {
if (!that.hasGeometryProcessor()) {
return kIncompatible_CombinedState;
return false;
} else if (!GrEffectStage::AreCompatible(*this->getGeometryProcessor(),
*that.getGeometryProcessor(),
explicitLocalCoords)) {
return kIncompatible_CombinedState;
return false;
}
} else if (that.hasGeometryProcessor()) {
return kIncompatible_CombinedState;
return false;
}
for (int i = 0; i < this->numColorStages(); i++) {