mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Soften errors if D3D12 fails to load
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user