|
@@ -4240,7 +4240,8 @@ export class Engine {
|
|
|
customFallback = true;
|
|
|
excludeLoaders.push(loader);
|
|
|
Tools.Warn((loader.constructor as any).name + " failed when trying to load " + texture.url + ", falling back to the next supported loader");
|
|
|
- this.createTexture(urlArg, noMipmap, texture.invertY, scene, samplingMode, null, null, buffer, texture, undefined, undefined, excludeLoaders);
|
|
|
+ this.createTexture(urlArg, noMipmap, texture.invertY, scene, samplingMode, null, onError, buffer, texture, undefined, undefined, excludeLoaders);
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -4249,7 +4250,8 @@ export class Engine {
|
|
|
texture.onLoadedObservable.remove(onLoadObserver);
|
|
|
}
|
|
|
if (Tools.UseFallbackTexture) {
|
|
|
- this.createTexture(Tools.fallbackTexture, noMipmap, texture.invertY, scene, samplingMode, null, null, buffer, texture);
|
|
|
+ this.createTexture(Tools.fallbackTexture, noMipmap, texture.invertY, scene, samplingMode, null, onError, buffer, texture);
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
|