Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index aa9e40c3f2acf942f2f2eeec64e2ed7d7ba6a377..2f4329ae048b0704d756c672df65274d01c0b193 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -359,12 +359,13 @@ void GrGLProgramBuilder::emitAndInstallProc(const GrGeometryProcessor& gp, |
SkASSERT(!fGeometryProcessor); |
fGeometryProcessor = SkNEW(GrGLInstalledGeoProc); |
- fGeometryProcessor->fGLProc.reset(gp.getFactory().createGLInstance(gp)); |
+ const GrBatchTracker& bt = fOptState.getBatchTracker(); |
+ fGeometryProcessor->fGLProc.reset(gp.getFactory().createGLInstance(gp, bt)); |
SkSTArray<4, GrGLProcessor::TextureSampler> samplers(gp.numTextures()); |
this->emitSamplers(gp, &samplers, fGeometryProcessor); |
- GrGLGeometryProcessor::EmitArgs args(this, gp, outColor, outCoverage, samplers); |
+ GrGLGeometryProcessor::EmitArgs args(this, gp, bt, outColor, outCoverage, samplers); |
fGeometryProcessor->fGLProc->emitCode(args); |
// We have to check that effects and the code they emit are consistent, ie if an effect |