mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
wg_engine: crash for empty clips fix
issue: https://github.com/thorvg/thorvg/issues/3289
This commit is contained in:
parent
b350e45e1e
commit
a7efd0f199
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue