mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 06:04:03 +00:00
Refactoring of GlGeometry::decomposeOutline due to an internal change in RenderShape data structure.
This commit is contained in:
parent
d7058e41e4
commit
c3af682f68
1 changed files with 4 additions and 4 deletions
|
@ -45,10 +45,10 @@ const GlSize GlGeometry::getPrimitiveSize(const uint32_t primitiveIndex) const
|
||||||
|
|
||||||
bool GlGeometry::decomposeOutline(const RenderShape& rshape)
|
bool GlGeometry::decomposeOutline(const RenderShape& rshape)
|
||||||
{
|
{
|
||||||
auto cmds = rshape.path.cmds;
|
auto cmds = rshape.path.cmds.data;
|
||||||
auto cmdCnt = rshape.path.cmdCnt;
|
auto cmdCnt = rshape.path.cmds.count;
|
||||||
auto pts = rshape.path.pts;
|
auto pts = rshape.path.pts.data;
|
||||||
auto ptsCnt = rshape.path.ptsCnt;
|
auto ptsCnt = rshape.path.pts.count;
|
||||||
|
|
||||||
//No actual shape data
|
//No actual shape data
|
||||||
if (cmdCnt == 0 || ptsCnt == 0) return false;
|
if (cmdCnt == 0 || ptsCnt == 0) return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue