Browse Source

KTX2Loader: Don't select ETC1 in WebGL2. (#22982)

Don McCurdy 3 years ago
parent
commit
75664cbb12
1 changed files with 8 additions and 0 deletions
  1. 8 0
      examples/jsm/loaders/KTX2Loader.js

+ 8 - 0
examples/jsm/loaders/KTX2Loader.js

@@ -94,6 +94,14 @@ class KTX2Loader extends Loader {
 				|| renderer.extensions.has( 'WEBKIT_WEBGL_compressed_texture_pvrtc' )
 		};
 
+
+		if ( renderer.capabilities.isWebGL2 ) {
+
+			// https://github.com/mrdoob/three.js/pull/22928
+			this.workerConfig.etc1Supported = false;
+
+		}
+
 		return this;
 
 	}