diff options
author | jvanverth <jvanverth@google.com> | 2015-12-09 16:54:35 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-09 16:54:35 -0800 |
commit | b3685c8646c956bfe1bcce35e72ed96a44009f9e (patch) | |
tree | 11b1622098c8ad7670c584710ec486c073c44171 /src/gpu/gl/GrGLCaps.cpp | |
parent | e0021c0b05e78e12cd58727e770f28a45a848bb4 (diff) |
Use BRGA as internal format on later iOS
BUG=skia:2733
Review URL: https://codereview.chromium.org/1504333007
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index a7a1e8dec1..43c33d1770 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -848,6 +848,9 @@ void GrGLCaps::initConfigTexturableTable(const GrGLContextInfo& ctxInfo, const G } else { if (ctxInfo.hasExtension("GL_APPLE_texture_format_BGRA8888")) { fConfigTextureSupport[kBGRA_8888_GrPixelConfig] = true; + if (version >= GR_GL_VER(3,0) || ctxInfo.hasExtension("GL_EXT_texture_storage")) { + fBGRAIsInternalFormat = true; + } } else if (ctxInfo.hasExtension("GL_EXT_texture_format_BGRA8888")) { fConfigTextureSupport[kBGRA_8888_GrPixelConfig] = true; fBGRAIsInternalFormat = true; |