Index: src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
diff --git a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
index f97b8541d0b6dcf41fef56cc1537bf7b3a5cc7e4..7ec18a23e814e4383fde0fcce260c20855fe8758 100644 |
--- a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
+++ b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
@@ -216,6 +216,7 @@ void GrGLSLFragmentShaderBuilder::enableCustomOutput() { |
fOutputs.push_back().set(kVec4f_GrSLType, |
GrGLSLShaderVar::kOut_TypeModifier, |
DeclaredColorOutputName()); |
+ fProgramBuilder->finalizeFragmentOutputColor(fOutputs.back()); |
} |
} |
@@ -234,6 +235,7 @@ void GrGLSLFragmentShaderBuilder::enableSecondaryOutput() { |
if (caps.mustDeclareFragmentShaderOutput()) { |
fOutputs.push_back().set(kVec4f_GrSLType, GrGLSLShaderVar::kOut_TypeModifier, |
DeclaredSecondaryColorOutputName()); |
+ fProgramBuilder->finalizeFragmentSecondaryColor(fOutputs.back()); |
} |
} |