]> O.S.I.I.S - jp/vkvg.git/commitdiff
check path array on curve end point
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 2 Sep 2019 03:17:01 +0000 (05:17 +0200)
committerj-p <jp_bruyere@hotmail.com>
Tue, 3 Sep 2019 18:36:09 +0000 (20:36 +0200)
src/vkvg_context_internal.c
src/vkvg_context_internal.h

index 7290d993cfb1ec22ada91d1069a8b56e50e9164b..f8365bc0aca9933c650b0ab6cae867db747e43fb 100644 (file)
@@ -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) {
index 4cadb57c7035b740c1b493c91ee2f1b2ce35ed39..27cba31ade478687e7d1f2b6049d2daf3d259d12 100644 (file)
@@ -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{