public boolean clearUpdateNeeded() {
        boolean f = updateFlag;
        updateFlag = false;
        return f;
    }
Clears the update flag and returns the update flag's value before
it was cleared.

@return
jme3-core/src/main/java/com/jme3/texture/TextureImage.java