summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/common/scripts')
-rw-r--r--src/client/app/common/scripts/room/room.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/app/common/scripts/room/room.ts b/src/client/app/common/scripts/room/room.ts
index 2a06f5bc5b..b2e2c300b2 100644
--- a/src/client/app/common/scripts/room/room.ts
+++ b/src/client/app/common/scripts/room/room.ts
@@ -210,7 +210,10 @@ export class Room {
//#region Avatar
const avatarUrl = user.avatarUrl;
- const iconTexture = new THREE.TextureLoader().load(avatarUrl);
+ const textureLoader = new THREE.TextureLoader();
+ textureLoader.crossOrigin = 'anonymous';
+
+ const iconTexture = textureLoader.load(avatarUrl);
iconTexture.wrapS = THREE.RepeatWrapping;
iconTexture.wrapT = THREE.RepeatWrapping;
iconTexture.anisotropy = 16;
@@ -467,6 +470,7 @@ export class Room {
});
const img = new Image();
+ img.crossOrigin = 'anonymous';
img.onload = () => {
const uvInfo = def.texture[t].uv;