If all the attached filters get disabled, they all get reinitialized during the next render.
I think this is because :
- Filter.setEnabled calls processor.setFilterState(this, enabled);
- FilterPostProcessor.setFilterState calls updateLastFilterIndex();
- which caluclates the last index to be -1 and calls cleanup();
- FilterPostProcessor.cleanup sets viewPort = null;
- then, in the not to distant future, RenderManager.renderViewPort() is called;
- which checks if the process is initalized: if (!proc.isInitialized()) {
- which returns return viewPort != null;...which is false due to #4
- so RenderManager reInializes FitlerPostProcessor
- which calls reshape(vp, cam.getWidth(), cam.getHeight());
- which reinitializes all attached filters