2
0
Brandon Jones 5 жил өмнө
parent
commit
14de6bc258

+ 1 - 1
examples/jsm/loaders/GLTFLoader.js

@@ -1482,7 +1482,7 @@ var GLTFLoader = ( function () {
 
 		// Use an ImageBitmapLoader if imageBitmaps are supported. Moves much of the
 		// expensive work of uploading a texture to the GPU off the main thread.
-		if (typeof createImageBitmap !== 'undefined') {
+		if ( typeof createImageBitmap !== 'undefined' ) {
 			this.textureLoader.setImageLoader( new ImageBitmapLoader( this.options.manager ) );
 		}
 

+ 2 - 2
src/loaders/TextureLoader.js

@@ -7,7 +7,7 @@ import { ImageLoader } from './ImageLoader.js';
 import { Texture } from '../textures/Texture.js';
 import { Loader } from './Loader.js';
 
-function TextureLoader( manager, imageLoader ) {
+function TextureLoader( manager ) {
 
 	Loader.call( this, manager );
 
@@ -23,7 +23,7 @@ TextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 		const texture = new Texture();
 
-		if ( !this.imageLoader ) {
+		if ( ! this.imageLoader ) {
 
 			this.imageLoader = new ImageLoader( this.manager );