Skip to content

Commit 589bea7

Browse files
committed
Solved material leakage in gowrapper
1 parent 1b84568 commit 589bea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/Core/GoWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ virtual protected void ApplyClipping(UpdateContext context)
301301
if (renderer == null)
302302
continue;
303303

304-
renderer.GetMaterials(helperMaterials);
304+
renderer.GetSharedMaterials(helperMaterials);
305305

306306
int cnt2 = helperMaterials.Count;
307307
for (int j = 0; j < cnt2; j++)

0 commit comments

Comments
 (0)