diff --git a/src/nodes/QskStrokeNode.cpp b/src/nodes/QskStrokeNode.cpp index e4120b75..22dead29 100644 --- a/src/nodes/QskStrokeNode.cpp +++ b/src/nodes/QskStrokeNode.cpp @@ -90,7 +90,8 @@ void QskStrokeNode::updateNode( stroker.process( dashedVectorPath, effectivePen, {}, {} ); } - d->geometry.allocate( stroker.vertexCount() ); + // 2 vertices for each point + d->geometry.allocate( stroker.vertexCount() / 2 ); memcpy( d->geometry.vertexData(), stroker.vertices(), stroker.vertexCount() * sizeof( float ) );