Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index a3b0d686a4a8bba18ee297c00b99180110db8e44..1478279fe26afd6ca30a69ba0060fe3d6f49d6fd 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -343,8 +343,7 @@ void GrGLProgramBuilder::emitAndInstallXferProc(const GrXferProcessor& xp, |
fFS.enableSecondaryOutput(); |
} |
- // On any post 1.10 GLSL supporting GPU, we declare custom output |
- if (k110_GrGLSLGeneration != fFS.fProgramBuilder->gpu()->glslGeneration()) { |
+ if (this->ctxInfo().caps()->glslCaps()->mustDeclareFragmentShaderOutput()) { |
fFS.enableCustomOutput(); |
} |