Fix: Uncached materials not being released #105795

Merged
Jeroen Bakker merged 2 commits from Jason-Fielder/blender:Fix_UncachedMaterialLeak into blender-v3.5-release 2023-03-16 08:19:43 +01:00

2 Commits

Author SHA1 Message Date
af63849253 Merge branch 'blender-v3.5-release' into Fix_UncachedMaterialLeak 2023-03-15 15:07:09 +01:00
1a96447d2d Fix: Uncached materials not being released
Optimized node graphs do not get cached and were
not correctly freed once their reference count reached
zero, due to being excluded from the GPUPass garbage
collection.

Also suppress Metal shader warnings, which are prevalent
during material optimization.

Authored by Apple: Michael Parkin-White
2023-03-14 14:17:25 +00:00