From 823a01c2e6e37ebbaebcbed7a104a22c17f746a9 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 26 Apr 2023 00:30:18 +0200 Subject: [PATCH] Fix wrapper registration from ICanvasEffectFactoryNative --- .../PixelShaderEffect{T}.ICanvasEffectFactoryNative.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);