From 27388434d64cacd1ab890f90c049fd01091b9921 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 13 Jul 2018 11:34:16 +0200 Subject: [PATCH] D3D12: Fix SetDescriptorHeap when we only have a sampler heap --- src/backend/d3d12/CommandBufferD3D12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/d3d12/CommandBufferD3D12.cpp b/src/backend/d3d12/CommandBufferD3D12.cpp index d0d857704a..a2ade35ae9 100644 --- a/src/backend/d3d12/CommandBufferD3D12.cpp +++ b/src/backend/d3d12/CommandBufferD3D12.cpp @@ -259,7 +259,7 @@ namespace backend { namespace d3d12 { } else if (descriptorHeaps[0]) { commandList->SetDescriptorHeaps(1, descriptorHeaps); } else if (descriptorHeaps[1]) { - commandList->SetDescriptorHeaps(2, &descriptorHeaps[1]); + commandList->SetDescriptorHeaps(1, &descriptorHeaps[1]); } }