Only generate mipmaps if the texdata has them. Yeah... I know.