From a9bd20270b74f4e826490b664cd9d3ae7371f579 Mon Sep 17 00:00:00 2001 From: castano Date: Mon, 11 Feb 2008 07:00:45 +0000 Subject: [PATCH] Fix DDS reading code. --- src/nvtt/tools/compress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvtt/tools/compress.cpp b/src/nvtt/tools/compress.cpp index 1071256..44a880a 100644 --- a/src/nvtt/tools/compress.cpp +++ b/src/nvtt/tools/compress.cpp @@ -324,7 +324,7 @@ int main(int argc, char *argv[]) for (uint f = 0; f < faceCount; f++) { - for (uint m = 0; m <= mipmapCount; m++) + for (uint m = 0; m < mipmapCount; m++) { dds.mipmap(&mipmap, f, m);