Fix Safari crash on mixer texture disposal

This commit is contained in:
Mark Greene committed 2026-07-10 21:30:21 +12:00
1 parent dc6c528167
commit 1061e003f7
1 file changed
+3 -1
+3 -1
View File
@@ -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();
}