From 3ee2c39be40313fb166a6dab6c67d921316a0a3c Mon Sep 17 00:00:00 2001 From: castano Date: Wed, 8 Dec 2010 19:53:59 +0000 Subject: [PATCH] Generate mipmaps until both extents are 1. Fixes issue 156. --- src/nvtt/TexImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvtt/TexImage.cpp b/src/nvtt/TexImage.cpp index fc19d30..eb317f4 100644 --- a/src/nvtt/TexImage.cpp +++ b/src/nvtt/TexImage.cpp @@ -749,7 +749,7 @@ bool TexImage::buildNextMipmap(MipmapFilter filter) bool TexImage::buildNextMipmap(MipmapFilter filter, float filterWidth, const float * params) { FloatImage * img = m->image; - if (img == NULL || img->width() == 1 || img->height() == 1) { + if (img == NULL || (img->width() == 1 && img->height() == 1)) { return false; }