wg_engine: crash for empty clips fix

issue: https://github.com/thorvg/thorvg/issues/3289
This commit is contained in:
Sergii Liebodkin 2025-03-19 16:40:23 +00:00 committed by Hermet Park
parent b350e45e1e
commit a7efd0f199

View file

@ -383,8 +383,8 @@ void WgRenderDataShape::updateMeshes(WgContext& context, const RenderShape &rsha
if ((this->meshGroupShapesBBox.meshes.count > 0 ) ||
(this->meshGroupStrokesBBox.meshes.count > 0)) {
updateAABB(tr);
meshDataBBox.bbox(context, pMin, pMax);
} else aabb = {{0, 0}, {0, 0}};
meshDataBBox.bbox(context, pMin, pMax);
pool->retVertexBuffer(pbuff);
}