mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
Fix Safari crash on mixer texture disposal
This commit is contained in:
1 parent
dc6c528167
commit
1061e003f7
1 file changed
+3
-1
@@ -36,7 +36,9 @@ export function useDispose(gltf: GLTF & ObjectMap, path: string) {
|
||||
for (const map of maps) {
|
||||
if (!map) continue;
|
||||
|
||||
map.source.data.close();
|
||||
if (typeof map.source.data.close === "function") {
|
||||
map.source.data.close();
|
||||
}
|
||||
map.dispose();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user