@@ -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>;