mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix code not setting return value for cached dxc module
This commit is contained in:
@@ -68,7 +68,10 @@ static HMODULE GetDXC()
|
||||
rdcstr path = StringFormat::Wide2UTF8(dxilPath);
|
||||
HMODULE dxcompiler = (HMODULE)Process::LoadModule(get_dirname(path) + "/dxcompiler.dll");
|
||||
if(dxcompiler)
|
||||
return dxcompiler;
|
||||
{
|
||||
ret = dxcompiler;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
// don't try to load dxcompiler.dll until we've got dxil.dll successfully, or if we're not
|
||||
@@ -79,7 +82,10 @@ static HMODULE GetDXC()
|
||||
HMODULE dxcompiler =
|
||||
(HMODULE)Process::LoadModule(LocatePluginFile("d3d12", "dxcompiler.dll"));
|
||||
if(dxcompiler)
|
||||
return dxcompiler;
|
||||
{
|
||||
ret = dxcompiler;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
// if we didn't find dxcompiler but did find dxil, somehow, then unload it
|
||||
|
||||
Reference in New Issue
Block a user