From 71f29a27f3b51e30c919384874881751d76653ae Mon Sep 17 00:00:00 2001 From: castano Date: Sat, 13 Jun 2009 14:18:31 +0000 Subject: [PATCH] Fix error in zero padding. --- src/nvtt/CompressRGB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvtt/CompressRGB.cpp b/src/nvtt/CompressRGB.cpp index f786346..50fdb10 100644 --- a/src/nvtt/CompressRGB.cpp +++ b/src/nvtt/CompressRGB.cpp @@ -150,7 +150,7 @@ void nv::compressRGB(const Image * image, const OutputOptions::Private & outputO } // Zero padding. - for (uint x = w; x < pitch; x++) + for (uint x = w * byteCount; x < pitch; x++) { *(dst + x) = 0; }