Fix an access violation in the shader panel render loop

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-03 17:48:52 +01:00
1 親 f019d2d9ca
コミット 8916bbf0fb
1ファイル変更
+4 -1
+4 -1
ファイルの表示
@@ -433,7 +433,10 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
this.d3D12GraphicsCommandList.Get()->Close().Assert();
// Execute the command list to perform the copy
this.d3D12CommandQueue.Get()->ExecuteCommandLists(1, (ID3D12CommandList**)this.d3D12GraphicsCommandList.GetAddressOf());
fixed (ID3D12GraphicsCommandList** d3D12GraphicsCommandList = this.d3D12GraphicsCommandList)
{
this.d3D12CommandQueue.Get()->ExecuteCommandLists(1, (ID3D12CommandList**)d3D12GraphicsCommandList);
}
// Increment the fence value and signal the fence. Just like with normal dispatches,
// the increment must be done after executing the command list and before signaling.