Index: include/gpu/GrEffectStage.h |
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h |
index 478ea5e4c45c2c941a7d4b517df0c26933d00ced..84ccbbf091dd6ccfa7a82d4412360336f891629d 100644 |
--- a/include/gpu/GrEffectStage.h |
+++ b/include/gpu/GrEffectStage.h |
@@ -45,7 +45,7 @@ public: |
SkASSERT(NULL != fEffectRef.get()); |
SkASSERT(NULL != other.fEffectRef.get()); |
- if (!(*this->getEffect())->isEqual(*other.getEffect())) { |
+ if (!this->getEffect()->isEqual(*other.getEffect())) { |
return false; |
} |
@@ -126,7 +126,7 @@ public: |
} |
} |
- const GrEffectRef* getEffect() const { return fEffectRef.get(); } |
+ const GrEffect* getEffect() const { return fEffectRef.get()->get(); } |
const int* getVertexAttribIndices() const { return fVertexAttribIndices; } |
int getVertexAttribIndexCount() const { return fEffectRef->get()->numVertexAttribs(); } |