Index: src/gpu/gl/GrGLCaps.cpp |
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
index c6a42cfc5432f610aa542a14704a26e0b696ff79..acb83f5d815308c5d2192849caea45572dacaf62 100644 |
--- a/src/gpu/gl/GrGLCaps.cpp |
+++ b/src/gpu/gl/GrGLCaps.cpp |
@@ -43,7 +43,6 @@ GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions, |
fDirectStateAccessSupport = false; |
fDebugSupport = false; |
fES2CompatibilitySupport = false; |
- fMultisampleDisableSupport = false; |
fUseNonVBOVertexAndIndexDynamicData = false; |
fIsCoreProfile = false; |
fBindFragDataLocationSupport = false; |
@@ -253,6 +252,17 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, |
} |
if (kGL_GrGLStandard == standard) { |
+ fProgrammableSampleLocationsSupport = |
+ ctxInfo.version() >= GR_GL_VER(4, 3) && |
+ (ctxInfo.hasExtension("GL_ARB_sample_locations") || |
+ ctxInfo.hasExtension("GL_NV_sample_locations")); |
+ } else { |
+ fProgrammableSampleLocationsSupport = |
+ ctxInfo.version() >= GR_GL_VER(3, 1) && |
+ ctxInfo.hasExtension("GL_NV_sample_locations"); |
+ } |
+ |
+ if (kGL_GrGLStandard == standard) { |
if (version >= GR_GL_VER(3, 0)) { |
fBindFragDataLocationSupport = true; |
} |
@@ -310,17 +320,6 @@ 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"); |
- } |
- |
/************************************************************************** |
* GrCaps fields |
**************************************************************************/ |
@@ -1183,7 +1182,6 @@ SkString GrGLCaps::dump() const { |
r.appendf("Instanced drawing support: %s\n", (fInstancedDrawingSupport ? "YES": "NO")); |
r.appendf("Direct state access support: %s\n", (fDirectStateAccessSupport ? "YES": "NO")); |
r.appendf("Debug support: %s\n", (fDebugSupport ? "YES": "NO")); |
- r.appendf("Multisample disable support: %s\n", (fMultisampleDisableSupport ? "YES" : "NO")); |
r.appendf("Use non-VBO for dynamic data: %s\n", |
(fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
r.appendf("SRGB write contol: %s\n", (fSRGBWriteControl ? "YES" : "NO")); |