summaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-02-19 16:26:52 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-02-19 16:26:52 +0100
commitffbd385875cff002f6fb478bc1da5add7c66ba93 (patch)
tree4cbd95d9628c9178a2f3980312ebafb080680579 /src
parentb101a448a9d7dadcefd7ab612ed4229c01bdab23 (diff)
debug: _poly_fill vbo size check
Diffstat (limited to 'src')
-rw-r--r--src/vkvg_context_internal.c2
1 files changed, 1 insertions, 1 deletions
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);