Added this missing line:
pRenderTarget->mDescriptors = pDesc->mDescriptors;
Without this line, removeRenderTarget can calculate an incorrect handleCount for an array/3d render target, by not multiplying by depthOrArraySize. And over time the maximum RTV descriptor count can be used up and cause a crash.
Added this missing line: pRenderTarget->mDescriptors = pDesc->mDescriptors;
Without this line, removeRenderTarget can calculate an incorrect handleCount for an array/3d render target, by not multiplying by depthOrArraySize. And over time the maximum RTV descriptor count can be used up and cause a crash.