From: Jean-Philippe Bruyère Date: Sat, 19 Feb 2022 15:26:52 +0000 (+0100) Subject: debug: _poly_fill vbo size check X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=ffbd385875cff002f6fb478bc1da5add7c66ba93;p=jp%2Fvkvg.git debug: _poly_fill vbo size check --- 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);