diff --git a/src/ComputeSharp.D2D1.Uwp/CanvasEffect.cs b/src/ComputeSharp.D2D1.Uwp/CanvasEffect.cs index 68f39a7f..0899ea5b 100644 --- a/src/ComputeSharp.D2D1.Uwp/CanvasEffect.cs +++ b/src/ComputeSharp.D2D1.Uwp/CanvasEffect.cs @@ -25,7 +25,11 @@ public abstract partial class CanvasEffect : ICanvasImage, ICanvasImageInterop.I /// /// Indicates whether the current state has been invalidated (requiring to be called). /// - private bool isInvalidated; + /// + /// This is initially so that will always be called when + /// first creating the image, even if the effect has not bee invalidated. This ensures default parameters are set. + /// + private bool isInvalidated = true; /// /// Indicates whether the effect is disposed.