From a09496591de79fa8939910537a819169f69a19b7 Mon Sep 17 00:00:00 2001 From: Sledmore Date: Mon, 27 Jun 2022 00:19:54 +0000 Subject: [PATCH] Add image/jpeg as a valid resource type for downloading image assets. --- src/core/asset/AssetManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/asset/AssetManager.ts b/src/core/asset/AssetManager.ts index c168be13..2ddc4bc4 100644 --- a/src/core/asset/AssetManager.ts +++ b/src/core/asset/AssetManager.ts @@ -178,7 +178,7 @@ export class AssetManager extends Disposable implements IAssetManager continue; } - if((resourceType === 'image/png') || (resourceType === 'image/gif')) + if((resourceType === 'image/png') || (resourceType === 'image/jpeg') || (resourceType === 'image/gif')) { const base64 = ArrayBufferToBase64(resource.data); const baseTexture = new BaseTexture(`data:${ resourceType };base64,${ base64 }`);