]> O.S.I.I.S - jp/vkvg.git/commitdiff
[debug]rebind draw pipeline on operator change only if cmd already started
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 12 Sep 2019 22:31:55 +0000 (00:31 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 12 Sep 2019 22:31:55 +0000 (00:31 +0200)
src/vkvg_context.c

index b0cd188209c826ab30ad4127af91b57091b05c45..287a969943e322fa3595aec08fa2452fac75ad16 100644 (file)
@@ -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;