diff options
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 73de1c5ee2..f619469f34 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -952,15 +952,9 @@ protected: return 0; } } - // given (a vertex layout and) a draw state, will a stage be used? - static bool StageWillBeUsed(int stage, - const GrDrawState& state) { - return NULL != state.getTexture(stage); - } bool isStageEnabled(int stage) const { - return StageWillBeUsed(stage, - this->getDrawState()); + return this->getDrawState().isStageEnabled(stage); } StageMask enabledStages() const { |