alelievr/HDRP-Custom-Passes

Minor SlightBlur.cs issue

jonaskew opened this issue · 1 comments

If you exit Play Mode while the SlightBlur custom pass is active, you get a bunch of errors as the frame isn't released properly.

I noticed that in the Cleanup method the maskDepthBuffer.Release() wasn't checking that maskDepthBuffer wasn't null, and changing it to maskDepthBuffer?.Release() fixed the problem.

Hello, I push the fix here: c77aa43
Thanks for the report :)