diff options
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index 3b27172fb4..56dc8d812a 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -748,7 +748,7 @@ bool GrDrawTarget::checkDraw(GrPrimitiveType type, int startVertex, GrAssert(NULL != drawState.getRenderTarget()); for (int s = 0; s < GrDrawState::kNumStages; ++s) { if (drawState.isStageEnabled(s)) { - const GrCustomStage* stage = drawState.getSampler(s).getCustomStage(); + const GrEffect* stage = drawState.getSampler(s).getCustomStage(); int numTextures = stage->numTextures(); for (int t = 0; t < numTextures; ++t) { GrTexture* texture = stage->texture(t); @@ -831,7 +831,7 @@ bool GrDrawTarget::srcAlphaWillBeOne(GrVertexLayout layout) const { // Check if a color stage could create a partial alpha for (int s = 0; s < drawState.getFirstCoverageStage(); ++s) { if (this->isStageEnabled(s)) { - const GrCustomStage* stage = drawState.getSampler(s).getCustomStage(); + const GrEffect* stage = drawState.getSampler(s).getCustomStage(); // FIXME: The param indicates whether the texture is opaque or not. However, the stage // already controls its textures. It really needs to know whether the incoming color // (from a uni, per-vertex colors, or previous stage) is opaque or not. |