| Index: src/gpu/gl/GrGLCaps.cpp
|
| diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
|
| index 1d25a2ca2f47eba5fcf1d4362387f9467983b1c4..1ce961e37d4e7810ce7c3e914c9ef6f9ebc0675b 100644
|
| --- a/src/gpu/gl/GrGLCaps.cpp
|
| +++ b/src/gpu/gl/GrGLCaps.cpp
|
| @@ -331,9 +331,17 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
|
| fDiscardRenderTargetSupport = false;
|
| fInvalidateFBType = kNone_InvalidateFBType;
|
| }
|
| - glslCaps->fProgrammableSampleLocationsSupport =
|
| - ctxInfo.hasExtension("GL_NV_sample_locations") ||
|
| - ctxInfo.hasExtension("GL_ARB_sample_locations");
|
| +
|
| + if (kGL_GrGLStandard == standard) {
|
| + glslCaps->fProgrammableSampleLocationsSupport =
|
| + ctxInfo.version() >= GR_GL_VER(4, 3) &&
|
| + (ctxInfo.hasExtension("GL_ARB_sample_locations") ||
|
| + ctxInfo.hasExtension("GL_NV_sample_locations"));
|
| + } else {
|
| + glslCaps->fProgrammableSampleLocationsSupport =
|
| + ctxInfo.version() >= GR_GL_VER(3, 1) &&
|
| + ctxInfo.hasExtension("GL_NV_sample_locations");
|
| + }
|
|
|
| /**************************************************************************
|
| * GrCaps fields
|
|
|