D3D12: Fix SetDescriptorHeap when we only have a sampler heap

This commit is contained in:
Corentin Wallez 2018-07-13 11:34:16 +02:00 committed by Corentin Wallez
parent a430a9a0aa
commit 27388434d6
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ namespace backend { namespace d3d12 {
} else if (descriptorHeaps[0]) { } else if (descriptorHeaps[0]) {
commandList->SetDescriptorHeaps(1, descriptorHeaps); commandList->SetDescriptorHeaps(1, descriptorHeaps);
} else if (descriptorHeaps[1]) { } else if (descriptorHeaps[1]) {
commandList->SetDescriptorHeaps(2, &descriptorHeaps[1]); commandList->SetDescriptorHeaps(1, &descriptorHeaps[1]);
} }
} }