mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-24 23:28:57 +00:00
sw_engine mempool: tiny optimization.
don't mempool anything if the option is same.
This commit is contained in:
parent
3c19f2aaf5
commit
1c53d47f81
1 changed files with 2 additions and 0 deletions
|
@ -405,6 +405,8 @@ bool SwRenderer::beginComposite(Compositor* cmp, CompositeMethod method, uint32_
|
|||
|
||||
bool SwRenderer::mempool(bool shared)
|
||||
{
|
||||
if (shared == sharedMpool) return true;
|
||||
|
||||
if (shared) {
|
||||
if (!sharedMpool) {
|
||||
if (!mpoolTerm(mpool)) return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue