Generate mipmaps until both extents are 1. Fixes issue 156.

This commit is contained in:
castano 2010-12-08 19:53:59 +00:00
parent b2f59ea0d7
commit 3ee2c39be4

View File

@ -749,7 +749,7 @@ bool TexImage::buildNextMipmap(MipmapFilter filter)
bool TexImage::buildNextMipmap(MipmapFilter filter, float filterWidth, const float * params) bool TexImage::buildNextMipmap(MipmapFilter filter, float filterWidth, const float * params)
{ {
FloatImage * img = m->image; FloatImage * img = m->image;
if (img == NULL || img->width() == 1 || img->height() == 1) { if (img == NULL || (img->width() == 1 && img->height() == 1)) {
return false; return false;
} }