Prevent crashes when switching w/Dx12 upscalers

This commit is contained in:
cdozdil
2026-06-28 01:07:50 +03:00
parent 9d589d7c6c
commit dcf694c109
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -368,6 +368,8 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D11_Shutdown()
shutdown = false;
State::Instance().nvngxDx11Inited = false;
Dx11WithDx12::ResetUpscalerResourceCache(true);
return NVSDK_NGX_Result_Success;
}
@@ -82,8 +82,6 @@ bool IFeature_Dx11wDx12::CreateD3D12Objects()
void IFeature_Dx11wDx12::ReleaseSharedResources()
{
Dx11WithDx12::ResetUpscalerResourceCache();
SAFE_RELEASE(Dx12CommandList[0]);
SAFE_RELEASE(Dx12CommandList[1]);
SAFE_RELEASE(Dx12CommandAllocator[0]);