Refactoring of GlGeometry::decomposeOutline due to an internal change in RenderShape data structure.

This commit is contained in:
Vincenzo Pupillo 2023-07-14 20:59:02 +02:00 committed by Hermet Park
parent d7058e41e4
commit c3af682f68

View file

@ -45,10 +45,10 @@ const GlSize GlGeometry::getPrimitiveSize(const uint32_t primitiveIndex) const
bool GlGeometry::decomposeOutline(const RenderShape& rshape)
{
auto cmds = rshape.path.cmds;
auto cmdCnt = rshape.path.cmdCnt;
auto pts = rshape.path.pts;
auto ptsCnt = rshape.path.ptsCnt;
auto cmds = rshape.path.cmds.data;
auto cmdCnt = rshape.path.cmds.count;
auto pts = rshape.path.pts.data;
auto ptsCnt = rshape.path.pts.count;
//No actual shape data
if (cmdCnt == 0 || ptsCnt == 0) return false;