diff options
Diffstat (limited to 'src/gpu/gl/GrGpuGL_program.cpp')
-rw-r--r-- | src/gpu/gl/GrGpuGL_program.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp index 5f5a3a6f95..343923098e 100644 --- a/src/gpu/gl/GrGpuGL_program.cpp +++ b/src/gpu/gl/GrGpuGL_program.cpp @@ -383,18 +383,13 @@ bool GrGpuGL::flushGraphicsState(DrawType type) { this->flushColor(color); this->flushCoverage(coverage); + fCurrentProgram->setData(drawState); + for (int s = 0; s < GrDrawState::kNumStages; ++s) { if (this->isStageEnabled(s)) { this->flushBoundTextureAndParams(s); this->flushTextureMatrix(s); - - if (NULL != fCurrentProgram->fProgramStage[s]) { - const GrSamplerState& sampler = this->getDrawState().getSampler(s); - fCurrentProgram->fProgramStage[s]->setData(fCurrentProgram->fUniformManager, - *sampler.getCustomStage(), - drawState.getRenderTarget(), s); - } } } } |