diff options
author | cdalton <cdalton@nvidia.com> | 2015-11-11 15:03:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-11 15:03:46 -0800 |
commit | 24ddb0a4ddbf4b576b2c8a6fc19765e00c3bd34d (patch) | |
tree | 7b30cd14a820fe3afc8fe24cee4a03690a0c3a3a /src/gpu/gl/GrGLCaps.cpp | |
parent | cb8d719d7a991ceb93ccc7dd1542bb0cd82437d6 (diff) |
Revert of Fix setColocatedSampleLocations on ES and GL < 4.5 (patchset #2 id:20001 of https://codereview.chromium.org/1415503008/ )
Reason for revert:
Co-centered sample locations are not needed to do stencil clip with mixed samples.
Original issue's description:
> Fix setColocatedSampleLocations on ES and GL < 4.5
>
> Updates setColocatedSampleLocations to use glFramebufferParameteri
> when
> the DSA version glNamedFramebufferParameteri is not present.
>
> BUG=skia:
>
> Committed:
> https://skia.googlesource.com/skia/+/98cad6219b430eddf5528473311279f21dbd2e10
BUG=skia:
Review URL: https://codereview.chromium.org/1420883007
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index b02f387afe..883a809f4d 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -301,16 +301,9 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, ctxInfo.hasExtension("GL_OES_standard_derivatives"); } - 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"); - } + glslCaps->fProgrammableSampleLocationsSupport = + ctxInfo.hasExtension("GL_NV_sample_locations") || + ctxInfo.hasExtension("GL_ARB_sample_locations"); /************************************************************************** * GrCaps fields |