mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Merge pull request #256 from Hitjack007/mixer-crashing
This commit is contained in:
1 file changed
+4
-1
@@ -36,7 +36,10 @@ export function useDispose(gltf: GLTF & ObjectMap, path: string) {
|
|||||||
for (const map of maps) {
|
for (const map of maps) {
|
||||||
if (!map) continue;
|
if (!map) continue;
|
||||||
|
|
||||||
map.source.data.close();
|
if (map.source.data instanceof ImageBitmap) {
|
||||||
|
map.source.data.close();
|
||||||
|
}
|
||||||
|
|
||||||
map.dispose();
|
map.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user