Fix CanvasEffect not invalidation on creation request

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-25 21:21:37 +02:00
1 親 c561c18b5e
コミット 452294cf84
1ファイル変更
+5 -7
+5 -7
ファイルの表示
@@ -124,14 +124,12 @@ public abstract partial class CanvasEffect : ICanvasImage, ICanvasImageInterop.I
this.canvasImage?.Dispose();
this.canvasImage = null;
this.isInvalidated = false;
}
else
{
// Otherwise, just mark the internal state as not being valid anymore. The next
// time the image is requested, the effect graph will be configured if needed.
this.isInvalidated = true;
}
// For both invalidation types, always mark the internal state as not being valid anymore.
// The next time the image is requested, the effect graph will be configured if needed.
// This matches the default value for the field (which is needed for the first realization).
this.isInvalidated = true;
}
}