Fixed a memory leak in the swap chain render loop

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-22 21:35:39 +01:00
1 親 e36afbfca6
コミット 456a687969
1ファイル変更
+2 -1
+2 -1
ファイルの表示
@@ -207,7 +207,8 @@ namespace ComputeSharp.Sample.SwapChain
this.currentBufferIndex ^= 1;
// Reset the command list to reuse
// Reset the command list and command allocator
this.d3D12CommandAllocator.Get()->Reset();
this.d3D12GraphicsCommandList.Get()->Reset(this.d3D12CommandAllocator.Get(), null);
D3D12_RESOURCE_BARRIER* d3D12ResourceBarriers = stackalloc D3D12_RESOURCE_BARRIER[]