Commit f649986
[UUM-66201] Fixed static numDecalsThisFrame causing IndexOutOfRange exceptions
Fix [UUM-66021](https://jira.unity3d.com/browse/UUM-66021)
Fixed IndexOutOfRange errors in the decal system when using multiple cameras. This was caused by the static variable `m_DecalsVisibleThisFrame` being updated during culling, so the number of decals visible were only considered for the last camera the decal culling ran on.1 parent 28b4e0a commit f649986
1 file changed
Lines changed: 10 additions & 1 deletion
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
1354 | 1362 | | |
1355 | 1363 | | |
1356 | 1364 | | |
1357 | | - | |
| 1365 | + | |
1358 | 1366 | | |
1359 | 1367 | | |
1360 | 1368 | | |
| |||
1670 | 1678 | | |
1671 | 1679 | | |
1672 | 1680 | | |
| 1681 | + | |
1673 | 1682 | | |
1674 | 1683 | | |
1675 | 1684 | | |
| |||
0 commit comments