From 9e010d2759ec6a96ead9f96909abd19ca091730e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Mon, 2 Sep 2019 05:17:01 +0200 Subject: [PATCH] check path array on curve end point --- src/vkvg_context_internal.c | 1 + src/vkvg_context_internal.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vkvg_context_internal.c b/src/vkvg_context_internal.c index 7290d99..f8365bc 100644 --- a/src/vkvg_context_internal.c +++ b/src/vkvg_context_internal.c @@ -66,6 +66,7 @@ inline void _set_curve_start (VkvgContext ctx) { inline void _set_curve_end (VkvgContext ctx) { ctx->pathes[ctx->pathPtr+ctx->curvePtr+2] = ctx->pointCount - 1; ctx->curvePtr+=2; + _check_pathes_array(ctx); } //path start pointed at ptrPath has curve bit inline bool _path_has_curves (VkvgContext ctx, uint ptrPath) { diff --git a/src/vkvg_context_internal.h b/src/vkvg_context_internal.h index 4cadb57..27cba31 100644 --- a/src/vkvg_context_internal.h +++ b/src/vkvg_context_internal.h @@ -31,7 +31,7 @@ #define VKVG_PTS_SIZE 4096 #define VKVG_VBO_SIZE 4096 * 8 #define VKVG_IBO_SIZE VKVG_VBO_SIZE * 6 -#define VKVG_PATHES_SIZE 32 +#define VKVG_PATHES_SIZE 16 #define VKVG_ARRAY_THRESHOLD 4 typedef struct{ -- 2.47.3