diff --git a/rpcs3/Emu/RSX/Common/ring_buffer_helper.h b/rpcs3/Emu/RSX/Common/ring_buffer_helper.h index 7f434ef1b0..46e99d928a 100644 --- a/rpcs3/Emu/RSX/Common/ring_buffer_helper.h +++ b/rpcs3/Emu/RSX/Common/ring_buffer_helper.h @@ -45,7 +45,7 @@ protected: } } - // Grow the buffer to hold at least size bytes + // Grow the buffer to hold at least size bytes virtual bool grow(usz /*size*/) { // Stub @@ -87,7 +87,7 @@ public: const usz alloc_size = utils::align(size, Alignment); const usz aligned_put_pos = utils::align(m_put_pos, Alignment); - if (!can_alloc(size) && !grow(aligned_put_pos + alloc_size)) + if (!can_alloc(size) && !grow(alloc_size)) { fmt::throw_exception("[%s] Working buffer not big enough, buffer_length=%d allocated=%d requested=%d guard=%d largest_pool=%d", m_name, m_size, m_current_allocated_size, size, m_min_guard_size, m_largest_allocated_pool);