Fixed the problem

TextureSettings was working incorrectly with textures that aren't
mipmapped.