diff options
Diffstat (limited to 'src/engine/PortImpl.cpp')
-rw-r--r-- | src/engine/PortImpl.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/engine/PortImpl.cpp b/src/engine/PortImpl.cpp index a1a20ba8..7abfb90d 100644 --- a/src/engine/PortImpl.cpp +++ b/src/engine/PortImpl.cpp @@ -127,13 +127,18 @@ PortImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) if (!_prepared_buffers) _prepared_buffers = new Array<BufferFactory::Ref>(poly, *_buffers, NULL); - get_buffers(bufs, _prepared_buffers, poly); - assert(prepared_poly() == poly); - return true; } +void +PortImpl::prepare_poly_buffers(BufferFactory& bufs) +{ + if (_prepared_buffers) + get_buffers(bufs, _prepared_buffers, _prepared_buffers->size()); +} + + bool PortImpl::apply_poly(Maid& maid, uint32_t poly) { |