fixed wrong logic in 'Texture2D::initWithMipmaps'