Register wrappers created from registered factories

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-24 15:34:56 +02:00
1 親 d61b37a6db
コミット e6a22dc159
1ファイル変更
+5
+5
ファイルの表示
@@ -104,6 +104,11 @@ unsafe partial class PixelShaderEffect<T>
resource->CopyTo(ref @this.d2D1Effect).Assert();
}
// 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);
// Unwrap the PixelShaderEffect<T> and return its CCW to the caller
RcwMarshaller.GetNativeObject(@this, wrapper);
return S.S_OK;