Skip to content

Commit 75664cb

Browse files
authored
KTX2Loader: Don't select ETC1 in WebGL2. (#22982)
1 parent 098003f commit 75664cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/jsm/loaders/KTX2Loader.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ class KTX2Loader extends Loader {
9494
|| renderer.extensions.has( 'WEBKIT_WEBGL_compressed_texture_pvrtc' )
9595
};
9696

97+
98+
if ( renderer.capabilities.isWebGL2 ) {
99+
100+
// https://github.com/mrdoob/three.js/pull/22928
101+
this.workerConfig.etc1Supported = false;
102+
103+
}
104+
97105
return this;
98106

99107
}

0 commit comments

Comments
 (0)