bill 9 mesi fa
parent
commit
165f88911c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/view/pano/pano.vue

+ 4 - 0
src/view/pano/pano.vue

@@ -175,6 +175,10 @@ const photo = async () => {
   pano.changeEnv(thumbnailTexs.value);
   pano.redraw();
   loading.value = false;
+
+  prevBigTexs.forEach((tex) => tex.dispose());
+  prevBigTexs = null;
+  prevBigImages = null;
 };
 
 let pano: ReturnType<typeof init>;