Fix T101402: EEVEE: Wrong Volume transforms

Ensure VolumeUniformPool uses is always incremented when retrieving a buffer in alloc().
Otherwise the same buffer will be retrieved for more than one object when incrementing the pool size.

Reviewed By: fclem

Maniphest Tasks: T101402

Differential Revision: https://developer.blender.org/D16607
This commit is contained in:
Miguel Pozo 2022-11-25 12:43:30 +01:00
parent 848dff1e4c
commit b918c079da
Notes: blender-bot 2023-02-14 08:38:14 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
Referenced by issue #101402, Regression: when the scene has multiple volumes, some of them get wrong transformation in Eevee's render
1 changed files with 0 additions and 1 deletions

View File

@ -56,7 +56,6 @@ struct VolumeUniformBufPool {
if (used >= ubos.size()) {
VolumeInfosBuf *buf = new VolumeInfosBuf();
ubos.append(buf);
return buf;
}
return ubos[used++];
}