mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +01:00
Merge branch 'Sledmore-main-patch-95903' into 'main'
Add image/jpeg as a valid resource type for downloading image assets. See merge request nitro/nitro-renderer!19
This commit is contained in:
commit
469641c836
@ -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 }`);
|
||||
|
Loading…
Reference in New Issue
Block a user