Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 28e1fba20cfca8eaf70e671414576be9bb6b48a6..95f75ffd448f167ca0cf5cb38e185b7c3f21b2a9 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(); |
} |