@@ -2013,7 +2013,7 @@ THREE.GLTFLoader = ( function () {
var onLoad = resolve;
- if ( useImageBitmap ) {
+ if ( loader.isImageBitmapLoader === true ) {
onLoad = function ( imageBitmap ) {
@@ -2078,7 +2078,7 @@ var GLTFLoader = ( function () {
@@ -7,6 +7,8 @@ export class ImageBitmapLoader extends Loader {
options: undefined | object;
+ readonly isImageBitmapLoader: true;
+
setOptions( options: object ): ImageBitmapLoader;
load(
url: string,
@@ -30,6 +30,8 @@ ImageBitmapLoader.prototype = Object.assign( Object.create( Loader.prototype ),
constructor: ImageBitmapLoader,
+ isImageBitmapLoader: true,
setOptions: function setOptions( options ) {
this.options = options;