Update to work with the new layers Texture abstraction.