Index: src/gpu/gl/builders/GrGLProgramBuilder.h |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h |
index 37908f997174e9a40cf7533fbdf6076b6f6c8eb3..46d2816c521e9e021eb62773727560e8d5bc343d 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.h |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.h |
@@ -356,7 +356,12 @@ protected: |
}; |
class AutoStageAdvance { |
public: |
- AutoStageAdvance(GrGLProgramBuilder* pb) : fPB(pb) { fPB->reset(); } |
+ AutoStageAdvance(GrGLProgramBuilder* pb) |
+ : fPB(pb) { |
+ fPB->reset(); |
+ // Each output to the fragment processor gets its own code section |
+ fPB->fFS.nextStage(); |
+ } |
~AutoStageAdvance() { fPB->exitStage(); } |
private: |
GrGLProgramBuilder* fPB; |