Soften errors if D3D12 fails to load

This commit is contained in:
baldurk
2019-09-20 11:04:10 +01:00
parent 0bcf9a4e2d
commit 2828f194e1
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -524,8 +524,8 @@ void RenderDoc::ProcessGlobalEnvironment(GlobalEnvironment env, const std::vecto
}
else
{
RDCERR("Couldn't create proxy replay driver for %s: %s", ToStr(driverType).c_str(),
ToStr(status).c_str());
RDCWARN("Couldn't create proxy replay driver for %s: %s", ToStr(driverType).c_str(),
ToStr(status).c_str());
}
if(driver)
+4 -1
View File
@@ -3691,7 +3691,10 @@ ReplayStatus D3D12_CreateReplayDevice(RDCFile *rdc, const ReplayOptions &opts, I
}
else
{
RDCERR("Failed to load d3d12.dll");
if(rdc)
RDCERR("Failed to load d3d12.dll");
else
RDCWARN("Failed to load d3d12.dll");
return ReplayStatus::APIInitFailed;
}
}