commit | eb79eea617d6d4ef6951206e51643ec4ef891920 | [log] [tgz] |
---|---|---|
author | cdalton <cdalton@nvidia.com> | Fri Feb 26 10:39:34 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Fri Feb 26 10:39:34 2016 -0800 |
tree | 252c8e02512c5a40d3d092abbb72ac275f30c952 | |
parent | b2c0133caf0f03462385c19634281c351355c979 [diff] [blame] |
Include glGetMultisamplefv API BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1720963002 Committed: https://skia.googlesource.com/skia/+/69c1b24bcaa7cffd59753a75a7f3d155696fcac4 Review URL: https://codereview.chromium.org/1720963002
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index da7907b..989c799 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp
@@ -126,6 +126,13 @@ fTextureBarrierSupport = ctxInfo.hasExtension("GL_NV_texture_barrier"); } + if (kGL_GrGLStandard == standard) { + fSampleLocationsSupport = version >= GR_GL_VER(3,2) || + ctxInfo.hasExtension("GL_ARB_texture_multisample"); + } else { + fSampleLocationsSupport = version >= GR_GL_VER(3,1); + } + // ARB_texture_rg is part of OpenGL 3.0, but mesa doesn't support GL_RED // and GL_RG on FBO textures. if (kMesa_GrGLDriver != ctxInfo.driver()) {