From 05a760b2f63256e6333b28e467cffe95cfc59224 Mon Sep 17 00:00:00 2001 From: castano Date: Thu, 31 Jan 2008 21:48:02 +0000 Subject: [PATCH] Normalize inputs correctly. --- src/nvtt/nvtt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvtt/nvtt.cpp b/src/nvtt/nvtt.cpp index 80b73a8..f961c62 100644 --- a/src/nvtt/nvtt.cpp +++ b/src/nvtt/nvtt.cpp @@ -423,9 +423,9 @@ static FloatImage * processInput(const InputOptions::Private & inputOptions, int if (inputOptions.normalizeMipmaps) { FloatImage * img = new FloatImage(mipmap.data.ptr()); - img->normalize(0); + normalizeNormalMap(img); return img; - } + } } else {