Bugs when managing postprocess pipeline

PG: https://playground.babylonjs.com/#RJRZT8#1
I think the bug is produced because _indicesForCamera is not cleaned when postProcessRenderEffect detach camera.

But I’m not sure if this is the right way to manage the postprocess pipeline, so please make me aware if it is strange.

You’re right, _indicesForCamera should be cleaned up when the camera is detached from the PostProcessRenderEffect.

Here’s the fix:

1 Like