| Index: third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp b/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp
|
| index 8a0819131f143ba3b703b014173df2abe8057a9c..eecc0267537d11d75d139ae5cdb5d1cfbce330bd 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp
|
| @@ -27,8 +27,12 @@ WebGLCompressedTextureETC1* WebGLCompressedTextureETC1::create(
|
|
|
| bool WebGLCompressedTextureETC1::supported(WebGLRenderingContextBase* context) {
|
| Extensions3DUtil* extensionsUtil = context->extensionsUtil();
|
| - return extensionsUtil->supportsExtension(
|
| - "GL_OES_compressed_ETC1_RGB8_texture");
|
| + bool webgl1 = !context->isWebGL2OrHigher();
|
| + bool etc1 =
|
| + extensionsUtil->supportsExtension("GL_OES_compressed_ETC1_RGB8_texture");
|
| + bool etc =
|
| + extensionsUtil->supportsExtension("GL_CHROMIUM_compressed_texture_etc");
|
| + return (webgl1 || etc) && etc1;
|
| }
|
|
|
| const char* WebGLCompressedTextureETC1::extensionName() {
|
|
|