From 087759d41d841400c3fbe8f78968c51e6fae48b3 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Fri, 24 Dec 2021 11:47:59 -0500 Subject: [PATCH] GLTFLoader: Avoid using ImageBitmap in Safari. --- examples/jsm/loaders/GLTFLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/jsm/loaders/GLTFLoader.js b/examples/jsm/loaders/GLTFLoader.js index 3557828a6e68a0..1f6f2ea294b74f 100644 --- a/examples/jsm/loaders/GLTFLoader.js +++ b/examples/jsm/loaders/GLTFLoader.js @@ -2253,7 +2253,7 @@ class GLTFParser { // 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' && /Firefox/.test( navigator.userAgent ) === false ) { + if ( typeof createImageBitmap !== 'undefined' && /Firefox|Safari/.test( navigator.userAgent ) === false ) { this.textureLoader = new ImageBitmapLoader( this.options.manager );