mipmap and warning fix