Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp

Issue 2576813002: Disable WEBGL_compressed_texture_etc1 on WebGL 1 on ANGLE (Closed)
Patch Set: update expectations Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9b708b754d04cfafa11f57e669a21f3cb4f14600..f12d9ae9a5521842992d7d302b2acfba7a2daa8f 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureETC1.cpp
@@ -25,12 +25,8 @@ WebGLCompressedTextureETC1* WebGLCompressedTextureETC1::create(
bool WebGLCompressedTextureETC1::supported(WebGLRenderingContextBase* context) {
Extensions3DUtil* extensionsUtil = context->extensionsUtil();
- 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;
+ return extensionsUtil->supportsExtension(
+ "GL_OES_compressed_ETC1_RGB8_texture");
}
const char* WebGLCompressedTextureETC1::extensionName() {
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698