Use BRGA as internal format on later iOS
authorjvanverth <jvanverth@google.com>
Thu, 10 Dec 2015 00:54:35 +0000 (16:54 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Dec 2015 00:54:35 +0000 (16:54 -0800)
BUG=skia:2733

Review URL: https://codereview.chromium.org/1504333007

src/gpu/gl/GrGLCaps.cpp

index a7a1e8dec1d34bdb87b0506b79747e2aa503a543..43c33d1770d54230abfbbf4caf1282565508276f 100644 (file)
@@ -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;