Index: src/gpu/gl/GrGLProgram.cpp |
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp |
index 7ddd8613f19b571f606ac6000682bb4fc1b8c3e9..f80bc2e550569be8fedac1e7d0d4f328df5d4bf5 100644 |
--- a/src/gpu/gl/GrGLProgram.cpp |
+++ b/src/gpu/gl/GrGLProgram.cpp |
@@ -241,8 +241,11 @@ void GrGLProgram::setData(GrDrawState::BlendOptFlags blendOpts, |
fColorEffects->setData(fGpu, fUniformManager, colorStages); |
fCoverageEffects->setData(fGpu, fUniformManager, coverageStages); |
+ |
+ // TexGen state applies to the the fixed function vertex shader. For custom shaders, it's |
+ // ignored, so we don't need to change the texgen settings in that case. |
if (!fHasVertexShader) { |
- fGpu->disableUnusedTexGen(fNumTexCoordSets); |
+ fGpu->flushTexGenSettings(fNumTexCoordSets); |
} |
} |