Sebastien Vandenberghe %!s(int64=6) %!d(string=hai) anos
pai
achega
a6c201e9d5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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];