diff options
Diffstat (limited to 'src/gpu/gl/GrGpuGL.cpp')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index edabb9c108..4a63b3322f 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -2140,15 +2140,6 @@ void GrGpuGL::flushBoundTextureAndParams(int stage) { GrGLTexture* nextTexture = static_cast<GrGLTexture*>(drawState->getTexture(stage)); - // HACK - if we're using a new SingleTextureEffect, override - // the old texture pointer - const GrSamplerState& sampler = drawState->getSampler(stage); - GrCustomStage* customStage = sampler.getCustomStage(); - if (customStage && customStage->numTextures()) { - nextTexture = - static_cast<GrGLTexture*>(customStage->texture(0)); - } - flushBoundTextureAndParams(stage, nextTexture); } |