TextureCache: Use the correct amount of layers.