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

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

Issue 2499413003: disable ETC1 on ANGLE's ES3 (Closed)
Patch Set: update expectations Created 4 years, 1 month 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 | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('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 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() {
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698