mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
renderer: allow empty content during canvas rendering
This allow more generous handling of failure cases for invalid content, thorvg can draw other successful contents. Now, only raster engines can return fail cases in the picture.
This commit is contained in:
parent
b221eed7fa
commit
1d0a9d534c
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ struct PictureImpl : Picture
|
||||||
|
|
||||||
bool render(RenderMethod* renderer)
|
bool render(RenderMethod* renderer)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
auto ret = true;
|
||||||
renderer->blend(impl.blendMethod);
|
renderer->blend(impl.blendMethod);
|
||||||
|
|
||||||
if (bitmap) return renderer->renderImage(impl.rd);
|
if (bitmap) return renderer->renderImage(impl.rd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue