Index: src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
index b59df575125ead5b3c46d8fe42de49137839be79..46433f01c27ff7dcc2d14da3d377fb05ae474a1f 100644 |
--- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
@@ -171,9 +171,9 @@ const char* GrGLFragmentShaderBuilder::dstColor() { |
this->addFeature(1 << (GrGLFragmentShaderBuilder::kLastGLSLPrivateFeature + 1), |
gpu->glCaps().fbFetchExtensionString()); |
- // On ES 3.0 we have to declare this, and use the custom color output name |
+ // Some versions of this extension string require declaring custom color output on ES 3.0+ |
const char* fbFetchColorName = gpu->glCaps().fbFetchColorName(); |
- if (gpu->glslGeneration() >= k330_GrGLSLGeneration) { |
+ if (gpu->glCaps().fbFetchNeedsCustomOutput()) { |
this->enableCustomOutput(); |
fOutputs[fCustomColorOutputIndex].setTypeModifier(GrShaderVar::kInOut_TypeModifier); |
fbFetchColorName = declared_color_output_name(); |