ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.63k stars 487 forks source link

pRenderTarget->mDescriptors = pDesc->mDescriptors; #294

Closed Manamongods closed 5 months ago

Manamongods commented 6 months ago

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.