Add OnDispose() override for readonly wrapper

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-17 00:29:37 +01:00
1 親 095c715515
コミット 4fce0c1d2d
1ファイル変更
+8
+8
ファイルの表示
@@ -68,6 +68,14 @@ partial class ReadWriteTexture2D<T, TPixel>
goto GetWrapperAndReturnIfNotNull;
}
/// <inheritdoc/>
protected override void OnDispose()
{
base.OnDispose();
this.readOnlyWrapper?.Dispose();
}
/// <summary>
/// A wrapper for a <see cref="ReadWriteTexture2D{T, TPixel}"/> resource that has been temporarily transitioned to readonly.
/// </summary>