public void setBufferObject(BufferType type, BufferObject bufferObject) {
        if (bufferObject == null) {
            throw new IllegalArgumentException("for storage block " + name + ": storageData cannot be null");
        }
        if (bufferObject == this.bufferObject && type == this.type) return;
        this.bufferObject = bufferObject;
        this.bufferObjectRef = new WeakReference<BufferObject>(bufferObject);
        this.type = type;
        updateNeeded = true;
    }
Set the new buffer object.

@param bufferObject
           the new buffer object.
jme3-core/src/main/java/com/jme3/shader/ShaderBufferBlock.java