aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
authorGravatar cblume <cblume@chromium.org>2016-03-01 14:08:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-01 14:08:28 -0800
commit09bd2c09b6b36737df289fdb5fa38c280162cbb8 (patch)
tree76b2cf57c1bb6e5a6890b3b98f4c7e1a09624e0c /src/gpu/gl/GrGLCaps.cpp
parent5b9ad7620b36858f99fef0763d7fc04d024fd71d (diff)
Disabling calls to TexParameteri when the values do not exist on ES2.
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 132e9b217c..22aa13f0ab 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -52,6 +52,7 @@ GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions,
fSRGBWriteControl = false;
fRGBA8888PixelsOpsAreSlow = false;
fPartialFBOReadIsSlow = false;
+ fMipMapLevelAndLodControlSupport = false;
fBlitFramebufferSupport = kNone_BlitFramebufferSupport;
@@ -246,6 +247,14 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
}
}
+ if (kGL_GrGLStandard == standard) {
+ fMipMapLevelAndLodControlSupport = true;
+ } else if (kGLES_GrGLStandard == standard) {
+ if (version >= GR_GL_VER(3,0)) {
+ fMipMapLevelAndLodControlSupport = true;
+ }
+ }
+
#ifdef SK_BUILD_FOR_WIN
// We're assuming that on Windows Chromium we're using ANGLE.
bool isANGLE = kANGLE_GrGLDriver == ctxInfo.driver() ||