diff --git a/src/lib/tvgPaint.h b/src/lib/tvgPaint.h index 8345e53d..3cdbaccf 100644 --- a/src/lib/tvgPaint.h +++ b/src/lib/tvgPaint.h @@ -170,7 +170,7 @@ namespace tvg edata = smethod->update(renderer, outTransform, opacity, clips, newFlag); } - if (cmpData) clips.pop(); + if (cmpData && cmpMethod == CompositeMethod::ClipPath) clips.pop(); return edata; }