public void clearDirty() {
            regions.forEach(BufferRegion::clearDirty);
            super.clearDirty();
        }
An helper class that iterates and merges dirty regions

@author Riccardo Balbo
jme3-core/src/main/java/com/jme3/shader/bufferobject/DirtyRegionsIterator.java