Use BRGA as internal format on later iOS
BUG=skia:2733 Review URL: https://codereview.chromium.org/1504333007
This commit is contained in:
parent
e0021c0b05
commit
b3685c8646
@ -848,6 +848,9 @@ void GrGLCaps::initConfigTexturableTable(const GrGLContextInfo& ctxInfo, const G
|
|||||||
} else {
|
} else {
|
||||||
if (ctxInfo.hasExtension("GL_APPLE_texture_format_BGRA8888")) {
|
if (ctxInfo.hasExtension("GL_APPLE_texture_format_BGRA8888")) {
|
||||||
fConfigTextureSupport[kBGRA_8888_GrPixelConfig] = true;
|
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")) {
|
} else if (ctxInfo.hasExtension("GL_EXT_texture_format_BGRA8888")) {
|
||||||
fConfigTextureSupport[kBGRA_8888_GrPixelConfig] = true;
|
fConfigTextureSupport[kBGRA_8888_GrPixelConfig] = true;
|
||||||
fBGRAIsInternalFormat = true;
|
fBGRAIsInternalFormat = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user