Index: src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
diff --git a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
index eb744a99156c8c64a8bd4e7051cbf687ce9eb59e..d35730f633012d764302d9994412e113ec793082 100644 |
--- a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
+++ b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
@@ -291,10 +291,10 @@ |
if (!fHasCustomColorOutput) { |
fHasCustomColorOutput = true; |
fCustomColorOutputIndex = fOutputs.count(); |
- fOutputs.push_back().set(kVec4f_GrSLType, |
- GrGLSLShaderVar::kOut_TypeModifier, |
- DeclaredColorOutputName()); |
- fProgramBuilder->finalizeFragmentOutputColor(fOutputs.back()); |
+ fOutputs.push_back().set(kVec4f_GrSLType, |
+ GrGLSLShaderVar::kOut_TypeModifier, |
+ DeclaredColorOutputName()); |
+ fProgramBuilder->finalizeFragmentOutputColor(fOutputs.back()); |
} |
} |
@@ -318,7 +318,7 @@ |
} |
const char* GrGLSLFragmentShaderBuilder::getPrimaryColorOutputName() const { |
- return fHasCustomColorOutput ? DeclaredColorOutputName() : "sk_FragColor"; |
+ return fHasCustomColorOutput ? DeclaredColorOutputName() : "gl_FragColor"; |
} |
void GrGLSLFragmentBuilder::declAppendf(const char* fmt, ...) { |