mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
renderer: ensure paints retain composition context
This commit addresses an issue where paints lost their composition context when drawings occurred without any updates. Now, paints will consistently retain the composition context, ensuring accurate rendering. Issue: https://github.com/thorvg/thorvg/issues/2058
This commit is contained in:
parent
3dbe535f38
commit
25645e087a
2 changed files with 0 additions and 2 deletions
|
@ -133,7 +133,6 @@ struct Scene::Impl
|
|||
if (needComp) {
|
||||
cmp = renderer->target(bounds(renderer), renderer->colorSpace());
|
||||
renderer->beginComposite(cmp, CompositeMethod::None, opacity);
|
||||
needComp = false;
|
||||
}
|
||||
|
||||
for (auto paint : paints) {
|
||||
|
|
|
@ -56,7 +56,6 @@ struct Shape::Impl
|
|||
if (needComp) {
|
||||
cmp = renderer->target(bounds(renderer), renderer->colorSpace());
|
||||
renderer->beginComposite(cmp, CompositeMethod::None, opacity);
|
||||
needComp = false;
|
||||
}
|
||||
ret = renderer->renderShape(rd);
|
||||
if (cmp) renderer->endComposite(cmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue