I’m trying to add a settings page where users can adjust some graphics options in a game.
When adding, removing and then adding DepthOfFieldFilter3D I will get the following error:
Error: Error #3663: Sampler 1 binds an undefined texture.
at flash.display3D::Context3D/drawTriangles()
at away3d.core.render::Filter3DRenderer/render()[D:\_dev\SpecR\src\away3d\core\render\Filter3DRenderer.as:136]
at away3d.containers::View3D/render()[D:\_dev\SpecR\src\away3d\containers\View3D.as:436]
Is it a bug, and should it be possible to toggle filters by simply adding and removing them from the filters3d array?
Or is there some routine I could perform between adding and removing a filter that would make it possible?