|
@@ -188,8 +188,8 @@ public class VectorLayerNode : LayerNode, ITransformableObject, IReadOnlyVectorN
|
|
|
{
|
|
|
int layer;
|
|
|
// TODO: This can be further optimized by passing opacity, blend mode and filters directly to the rasterization method
|
|
|
- if (paint.Color.A < 255 || paint.ColorFilter != null || paint.ImageFilter != null || paint.Shader != null ||
|
|
|
- paint.BlendMode != Drawie.Backend.Core.Surfaces.BlendMode.SrcOver)
|
|
|
+ if (paint != null && (paint.Color.A < 255 || paint.ColorFilter != null || paint.ImageFilter != null || paint.Shader != null ||
|
|
|
+ paint.BlendMode != Drawie.Backend.Core.Surfaces.BlendMode.SrcOver))
|
|
|
{
|
|
|
layer = surface.Canvas.SaveLayer(paint);
|
|
|
}
|