Index: src/gpu/gl/GrGLCaps.cpp |
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
index faccbd1fca23eb24244e1377d72170dfc9f76c01..599a0e00dace4a10b89e1522caa76548bb55d77f 100644 |
--- a/src/gpu/gl/GrGLCaps.cpp |
+++ b/src/gpu/gl/GrGLCaps.cpp |
@@ -533,6 +533,14 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, |
fTextureSwizzleSupport = false; |
} |
+ if (kGL_GrGLStandard == standard) { |
+ if (version >= GR_GL_VER(4, 0) || ctxInfo.hasExtension("GL_ARB_sample_shading")) { |
+ fSampleShadingSupport = true; |
+ } |
+ } else if (ctxInfo.hasExtension("GL_OES_sample_shading")) { |
+ fSampleShadingSupport = true; |
+ } |
+ |
// Requires fTextureRedSupport, fTextureSwizzleSupport, msaa support, ES compatibility have |
// already been detected. |
this->initConfigTable(ctxInfo, gli, glslCaps); |