From 6fe9e09affad0396459b50d484a56b02d3dcdfca Mon Sep 17 00:00:00 2001 From: Benoit Dumesnil Date: Wed, 25 May 2022 17:52:17 +0200 Subject: [PATCH] Fix EnqueueMakeResident not using the same parameters as MakeResident in d3dx12Residency library. --- Libraries/D3DX12Residency/d3dx12Residency.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/D3DX12Residency/d3dx12Residency.h b/Libraries/D3DX12Residency/d3dx12Residency.h index 1ff3f0ed6..f11c9478b 100644 --- a/Libraries/D3DX12Residency/d3dx12Residency.h +++ b/Libraries/D3DX12Residency/d3dx12Residency.h @@ -1296,8 +1296,8 @@ namespace D3DX12Residency if (Device3) { hr = Device3->EnqueueMakeResident(D3D12_RESIDENCY_FLAG_NONE, - NumObjectsInBatch, - &pMakeResidentList[BatchStart].pUnderlying, + NumObjects, + &pMakeResidentList[MakeResidentIndex].pUnderlying, AsyncThreadFence.pFence, AsyncThreadFence.FenceValue + 1); if (SUCCEEDED(hr))