When mipmap disabled , maxlevel always 0 (set earlier)
Merge pull request #5079 from raven02/patch-22

When mipmap disabled , maxlevel always 0 (set earlier)