Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 5cf7808

Browse files
Update mobile GM Viewer
1 parent 7a2cf5a commit 5cf7808

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

viewers/templates/Mobile/MGM Viewer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@
524524

525525
const compressedArrayBuffer = await io.writeBinary( doc );
526526

527+
for (const texture of doc.getRoot().listTextures()) { texture.dispose(); }
527528
for (const material of doc.getRoot().listMaterials()) { material.dispose(); }
528529
for (const mesh of doc.getRoot().listMeshes()) { mesh.dispose(); }
529530

@@ -629,7 +630,7 @@
629630
return compressedArrayBuffer;
630631
}
631632

632-
/* Encode textures only with either of WEBP or KTX2 compression */
633+
/* Encode textures only */
633634

634635
async function texture_compress( arrayBuffer ) {
635636
const { WebIO } = await import( "@gltf-transform/core" );

0 commit comments

Comments
 (0)