mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 19:12:36 +01:00
Merge branch 'main' into @update/widgets
This commit is contained in:
commit
c60f05b227
@ -178,7 +178,7 @@ export class AssetManager extends Disposable implements IAssetManager
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((resourceType === 'image/png') || (resourceType === 'image/gif'))
|
if((resourceType === 'image/png') || (resourceType === 'image/jpeg') || (resourceType === 'image/gif'))
|
||||||
{
|
{
|
||||||
const base64 = ArrayBufferToBase64(resource.data);
|
const base64 = ArrayBufferToBase64(resource.data);
|
||||||
const baseTexture = new BaseTexture(`data:${ resourceType };base64,${ base64 }`);
|
const baseTexture = new BaseTexture(`data:${ resourceType };base64,${ base64 }`);
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user