RingWithTabs::OnBeginFrame wrong m_backBufferIndex calculations
Closed this issue · 1 comments
ChemistAion commented
@rys next one:
Cauldron/src/common/Misc/Ring.h
Line 137 in b3a4f62
This one should release (through m_mem.Free(...)
) stuff from previous back_buffer, not the upcoming one.
Something like: m_backBufferIndex = m_backBufferIndex == 0 ? m_numberOfBackBuffers : m_backBufferIndex - 1;
ChemistAion commented
My bad, this is actually correct: the oldest stuff (indexed in ring fashion) is released.