diff options
author | Adrienne Walker <enne@chromium.org> | 2018-05-15 11:36:26 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-15 19:56:23 +0000 |
commit | 724afe8b2da2cd32394921096d5c738519b5a51e (patch) | |
tree | 37427063295330c5a2bc149a45c42956a31a100b /src/gpu/gl | |
parent | fb8bafb3520a522bb35768a71ab24f9bea06d1c4 (diff) |
Driver bug workaround: max_texture_size_limit_4096
Bug: chromium: 829614
Change-Id: I127157fa04df2ec6505411aa42f1232910e251d4
Reviewed-on: https://skia-review.googlesource.com/126608
Commit-Queue: Adrienne Walker <enne@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 2acc7ca91f..a20e049329 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -489,6 +489,11 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, } GR_GL_GetIntegerv(gli, GR_GL_MAX_TEXTURE_SIZE, &fMaxTextureSize); + + if (fDriverBugWorkarounds.max_texture_size_limit_4096) { + fMaxTextureSize = SkTMin(fMaxTextureSize, 4096); + } + GR_GL_GetIntegerv(gli, GR_GL_MAX_RENDERBUFFER_SIZE, &fMaxRenderTargetSize); // Our render targets are always created with textures as the color // attachment, hence this min: |