Merge pull request #564 from Sergio0694/dev/return-lost-array

Return rented array to array pool
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2023-09-22 11:11:11 +02:00
コミット d4f4b31dc6
1ファイル変更
+2
+2
ファイルの表示
@@ -57,6 +57,8 @@ internal static unsafe class ID2D1EffectExtensions
shader.InitializeFromDispatchData(buffer.AsSpan(0, constantBufferSize));
ArrayPool<byte>.Shared.Return(buffer);
return shader;
}