Add missing ArrayPool<byte>.Return-s in D2D1ShaderCompiler

このコミットが含まれているのは:
Sergio Pedri committed 2022-05-28 13:48:59 +02:00
1 親 b087d42235
コミット 745f23a3a1
1ファイル変更
+6 -1
+6 -1
ファイルの表示
@@ -44,7 +44,12 @@ public static class D2D1ShaderCompiler
ReadOnlySpan<byte> sourceAscii = sourceBuffer.AsSpan(0, sourceWrittenBytes);
ReadOnlySpan<byte> entryPointAscii = entryPointBuffer.AsSpan(0, entryPointWrittenBytes);
return Compile(sourceAscii, entryPointAscii, shaderProfile, options);
ReadOnlyMemory<byte> bytecode = Compile(sourceAscii, entryPointAscii, shaderProfile, options);
ArrayPool<byte>.Shared.Return(sourceBuffer);
ArrayPool<byte>.Shared.Return(entryPointBuffer);
return bytecode;
}
/// <summary>