Generate mipmaps until both extents are 1. Fixes issue 156.
This commit is contained in:
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…
Reference in New Issue
Block a user