From: Jean-Philippe Bruyère Date: Mon, 2 Sep 2019 03:17:01 +0000 (+0200) Subject: check path array on curve end point X-Git-Tag: v0.1-alpha~63 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=9e010d2759ec6a96ead9f96909abd19ca091730e;p=jp%2Fvkvg.git check path array on curve end point --- 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{