]> O.S.I.I.S - jp/vkvg.git/commitdiff
debug: _poly_fill vbo size check
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 19 Feb 2022 15:26:52 +0000 (16:26 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 19 Feb 2022 15:26:52 +0000 (16:26 +0100)
src/vkvg_context_internal.c

index b1bd258b052fb244ad64c11cf38a50ca978ebcfd..42757a7355dc29bb102d7e7c9528d2ec93a0aab2 100644 (file)
@@ -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);