From ffbd385875cff002f6fb478bc1da5add7c66ba93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sat, 19 Feb 2022 16:26:52 +0100 Subject: [PATCH] debug: _poly_fill vbo size check --- src/vkvg_context_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vkvg_context_internal.c b/src/vkvg_context_internal.c index b1bd258..42757a7 100644 --- a/src/vkvg_context_internal.c +++ b/src/vkvg_context_internal.c @@ -1570,7 +1570,7 @@ void _elliptic_arc (VkvgContext ctx, float x1, float y1, float x2, float y2, boo //Even-Odd inside test with stencil buffer implementation. void _poly_fill (VkvgContext ctx){ //we anticipate the check for vbo buffer size, ibo is not used in poly_fill - if (ctx->vertCount + ctx->pointCount < ctx->sizeVBO) { + if (ctx->vertCount + ctx->pointCount > ctx->sizeVBO) { if (ctx->cmdStarted) { _end_render_pass(ctx); _flush_vertices_caches(ctx); -- 2.47.3