mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 07:36:45 +00:00
Prevent crashes when switching w/Dx12 upscalers
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user