Commit 4df392e9 authored by Samuel Debionne's avatar Samuel Debionne
Browse files

Fix HwBufferMgr when nb of available buffers decreases (e.g. to_alloc is negative)

parent 9314af23
Pipeline #34937 passed with stages
in 29 minutes
......@@ -113,8 +113,8 @@ void SoftBufferAllocMgr::allocBuffers(int nb_buffers,
try {
BufferList& bl = m_buffer_list;
if (to_alloc > 0) {
bl.resize(nb_buffers, MemBuffer(m_allocator));
bl.resize(nb_buffers, MemBuffer(m_allocator));
if (to_alloc > 0) {
DEB_TRACE() << "Allocating " << to_alloc << " buffers";
for (int i = curr_nb_buffers; i < nb_buffers; i++)
bl[i].alloc(frame_size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment