Sebastien Vandenberghe 6 年之前
父節點
當前提交
a6c201e9d5
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Misc/dds.ts

+ 2 - 1
src/Misc/dds.ts

@@ -533,7 +533,8 @@ export class DDSTools {
             mipmapCount = Math.max(1, header[off_mipmapCount]);
         }
 
-        for (var face = 0; face < faces; face++) {
+        const startFace = currentFace || 0;
+        for (var face = startFace; face < faces; face++) {
             width = header[off_width];
             height = header[off_height];