Commit 19552a98 authored by Geoff Lang's avatar Geoff Lang Committed by Commit Bot

Allow GL_OES_compressed_ETC1_RGB8_texture on ANGLE.

Use the presence of the GL_CHROMIUM_compressed_texture_etc extension as
an indicator that there is native support for
GL_OES_compressed_ETC1_RGB8_texture in ANGLE.

BUG=882580

Change-Id: Ibb0032052d971a19f00ebb2e5815da9185aa5148
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1666870Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#671474}
parent bd641313
......@@ -1035,11 +1035,14 @@ void FeatureInfo::InitializeFeatures() {
validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_EXTERNAL_OES);
}
// TODO(kainino): If we add a way to query whether ANGLE is exposing
// native support for ETC1 textures, require that here. Otherwise, we could
// co-opt the native-ETC2-support query discussed below.
// When running on top of ANGLE, also require the
// GL_CHROMIUM_compressed_texture_etc exentsion to expose
// GL_OES_compressed_ETC1_RGB8_texture. There is no query for native support
// of this texture format so assume that if ANGLE natively supports ETC2, ETC1
// is also supported.
if (gfx::HasExtension(extensions, "GL_OES_compressed_ETC1_RGB8_texture") &&
!gl_version_info_->is_angle) {
(!gl_version_info_->is_angle ||
gfx::HasExtension(extensions, "GL_CHROMIUM_compressed_texture_etc"))) {
AddExtensionString("GL_OES_compressed_ETC1_RGB8_texture");
feature_flags_.oes_compressed_etc1_rgb8_texture = true;
validators_.compressed_texture_format.AddValue(GL_ETC1_RGB8_OES);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment