public void onFrameBufferUse(FrameBuffer fb, boolean wasSwitched) {
        if (!enabled) {
            return;
        }

        if (fb != null) {
            assert fb.getId() >= 1;

            if (!fbosUsed.containsKey(fb.getId())) {
                fbosUsed.put(fb.getId(), null);
            }
        }

        if (wasSwitched) {
            numFboSwitches++;
        }
    }
Called by the Renderer when a framebuffer has been set.

@param fb The framebuffer that was set
@param wasSwitched If true, the framebuffer required a state switch
jme3-core/src/main/java/com/jme3/renderer/Statistics.java