Add assignment operator to Texture.