Disposing SSAO2 rendering pipeline

Hey beloved Babylon.js team!

I spotted a bug recently in SSAO2 rendering pipleine. When the instance of SSAO2 rendering pipeline is disposed, an error occurs on the next rendered frame (somewhere in the rendering loop). I tired to debug myself but I prefer to let professionals having a look to it :slight_smile:

I created a playground that instantiates a new SSAO2 rendering pipeline and disposes it 3 seconds later so you can have a trace of the error.

Don’t hesitate if you need more information

Thanks a lot :heart:

cc @Evgeni_Popov

Thanks for letting us know, here’s the fix:

4 Likes

It works perfectly !! Thanks alot @Evgeni_Popov !

2 Likes

Nice to see you here @julien-moreau !!!

2 Likes

@sebavan I’m preparing something ! And it needs SSAO ! :grinning_face_with_smiling_eyes:

1 Like