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

pull/216/head
castano 14 years ago
parent b2f59ea0d7
commit 3ee2c39be4

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

Loading…
Cancel
Save