public void setTexture(Texture texture) {
        Objects.requireNonNull(texture, "Wrapped texture cannot be null.");
        if (this.texture != texture) {
            this.texture = texture;
            updateFlag = true;
        }
    }
Sets the underlying texture wrapped by this TextureImage.

@param texture wrapped texture (not null)
jme3-core/src/main/java/com/jme3/texture/TextureImage.java