diff --git a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs b/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs index d6c49f69..073b4ae2 100644 --- a/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs +++ b/src/ComputeSharp.D2D1.UI/PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs @@ -139,7 +139,7 @@ unsafe partial class PixelShaderEffect // Register the new wrapper for the input resource. This has to be done manually in this // case, as the effect is not being realized through the usual path from GetD2DImage. - ResourceManager.RegisterWrapper((IUnknown*)resource, this); + ResourceManager.RegisterWrapper((IUnknown*)resource, @this); // Unwrap the PixelShaderEffect and return its CCW to the caller RcwMarshaller.GetNativeObject(@this, wrapper);