From: Jean-Philippe Bruyère Date: Thu, 12 Sep 2019 22:31:55 +0000 (+0200) Subject: [debug]rebind draw pipeline on operator change only if cmd already started X-Git-Tag: v0.1-alpha~49 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=899dd89950f642c4202bdf314af1fcd9147139d6;p=jp%2Fvkvg.git [debug]rebind draw pipeline on operator change only if cmd already started --- diff --git a/src/vkvg_context.c b/src/vkvg_context.c index b0cd188..287a969 100644 --- a/src/vkvg_context.c +++ b/src/vkvg_context.c @@ -735,7 +735,8 @@ void vkvg_set_line_join (VkvgContext ctx, vkvg_line_join_t join){ } void vkvg_set_operator (VkvgContext ctx, vkvg_operator_t op){ ctx->curOperator = op; - _bind_draw_pipeline (ctx); + if (ctx->cmdStarted) + _bind_draw_pipeline (ctx); } void vkvg_set_fill_rule (VkvgContext ctx, vkvg_fill_rule_t fr){ ctx->curFillRule = fr;