Index: src/gpu/gl/GrGLShaderBuilder.cpp |
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp |
index 9af28398b2795758909155f82d6069d76f5ee90d..f8f810ff78a8967e612cfd7adb99e1e44d9300c7 100644 |
--- a/src/gpu/gl/GrGLShaderBuilder.cpp |
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp |
@@ -194,17 +194,15 @@ bool GrGLShaderBuilder::genProgram(const GrEffectStage* colorStages[], |
/////////////////////////////////////////////////////////////////////////// |
// emit the per-effect code for both color and coverage effects |
- fOutput.fColorEffects = |
- this->createAndEmitEffects(colorStages, |
- this->desc().getEffectKeys(), |
- this->desc().numColorEffects(), |
- &inputColor); |
- |
- fOutput.fCoverageEffects = |
- this->createAndEmitEffects(coverageStages, |
+ fOutput.fColorEffects.reset(this->createAndEmitEffects(colorStages, |
+ this->desc().getEffectKeys(), |
+ this->desc().numColorEffects(), |
+ &inputColor)); |
+ |
+ fOutput.fCoverageEffects.reset(this->createAndEmitEffects(coverageStages, |
this->desc().getEffectKeys() + this->desc().numColorEffects(), |
this->desc().numCoverageEffects(), |
- &inputCoverage); |
+ &inputCoverage)); |
this->emitCodeAfterEffects(); |