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:
parent
4f90c50b56
commit
5a80be2241
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user