Merge pull request #256 from Hitjack007/mixer-crashing

This commit is contained in:
TrèsAbhi authored and GitHub committed 2026-07-11 17:17:11 -05:00
commit cd8e43f945
1 file changed
+4 -1
+4 -1
View File
@@ -36,7 +36,10 @@ export function useDispose(gltf: GLTF & ObjectMap, path: string) {
for (const map of maps) {
if (!map) continue;
map.source.data.close();
if (map.source.data instanceof ImageBitmap) {
map.source.data.close();
}
map.dispose();
}