alelievr / HDRP-Custom-Passes

A bunch of custom passes made for HDRP
MIT License
1.27k stars 136 forks source link

Minor SlightBlur.cs issue #14

Closed jonaskew closed 4 years ago

jonaskew commented 4 years ago

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.

alelievr commented 4 years ago

Hello, I push the fix here: https://github.com/alelievr/HDRP-Custom-Passes/commit/c77aa4334126ddf347102cc246eec173a7178cfd Thanks for the report :)