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 4781d83089
commit 1381658401

View File

@ -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;
}