mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-24 23:28:57 +00:00
common: nothing was rendered after an empty masked node came across
The problem was observed for empty masked scenes (except the fastTrack cases). Solved by imimediate returning from the func without passing 'false' as its result.
This commit is contained in:
parent
3221e27e3e
commit
d4c15dcf66
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ bool Paint::Impl::render(RenderMethod& renderer)
|
|||
Create a composition image. */
|
||||
if (cmpTarget && cmpMethod != CompositeMethod::ClipPath && !(cmpTarget->pImpl->ctxFlag & ContextFlag::FastTrack)) {
|
||||
auto region = smethod->bounds(renderer);
|
||||
if (region.w == 0 || region.h == 0) return false;
|
||||
if (region.w == 0 || region.h == 0) return true;
|
||||
cmp = renderer.target(region);
|
||||
renderer.beginComposite(cmp, CompositeMethod::None, 255);
|
||||
cmpTarget->pImpl->render(renderer);
|
||||
|
|
Loading…
Add table
Reference in a new issue