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:
Hermet Park 2025-05-28 00:36:30 +09:00
parent b221eed7fa
commit 1d0a9d534c

View file

@ -253,7 +253,7 @@ struct PictureImpl : Picture
bool render(RenderMethod* renderer)
{
bool ret = false;
auto ret = true;
renderer->blend(impl.blendMethod);
if (bitmap) return renderer->renderImage(impl.rd);