|
@@ -71,13 +71,12 @@ THREE.BasisTextureLoader.prototype = {
|
|
|
|
|
|
detectSupport: function ( renderer ) {
|
|
detectSupport: function ( renderer ) {
|
|
|
|
|
|
- var context = renderer.context;
|
|
|
|
var config = this.workerConfig;
|
|
var config = this.workerConfig;
|
|
|
|
|
|
- config.etcSupported = !! context.getExtension( 'WEBGL_compressed_texture_etc1' );
|
|
|
|
- config.dxtSupported = !! context.getExtension( 'WEBGL_compressed_texture_s3tc' );
|
|
|
|
- config.pvrtcSupported = !! context.getExtension( 'WEBGL_compressed_texture_pvrtc' )
|
|
|
|
- || !! context.getExtension( 'WEBKIT_WEBGL_compressed_texture_pvrtc' );
|
|
|
|
|
|
+ config.etcSupported = !! renderer.extensions.get( 'WEBGL_compressed_texture_etc1' );
|
|
|
|
+ config.dxtSupported = !! renderer.extensions.get( 'WEBGL_compressed_texture_s3tc' );
|
|
|
|
+ config.pvrtcSupported = !! renderer.extensions.get( 'WEBGL_compressed_texture_pvrtc' )
|
|
|
|
+ || !! renderer.extensions.get( 'WEBKIT_WEBGL_compressed_texture_pvrtc' );
|
|
|
|
|
|
if ( config.etcSupported ) {
|
|
if ( config.etcSupported ) {
|
|
|
|
|