mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
shaderc: Fixed DXIL compiler path. (#3585)
This commit is contained in:
committed by
GitHub
parent
252efb73d9
commit
562ece68a7
@@ -177,12 +177,15 @@ namespace bgfx { namespace dxil
|
||||
|
||||
HRESULT hr = E_FAIL;
|
||||
|
||||
bx::FilePath dxcCompilerDll = bx::FilePath(bx::Dir::Executable).getPath();
|
||||
dxcCompilerDll.join(dxcCompilerDllName);
|
||||
|
||||
Dxc dxc;
|
||||
dxc.dll = bx::dlopen(dxcCompilerDllName);
|
||||
dxc.dll = bx::dlopen(dxcCompilerDll.getCPtr() );
|
||||
|
||||
if (NULL == dxc.dll)
|
||||
{
|
||||
BX_TRACE("Error: Unable to open %s shader compiler.\n", dxcCompilerDllName);
|
||||
BX_TRACE("Error: Unable to open %s shader compiler.\n", dxcCompilerDll.getCPtr() );
|
||||
return Dxc{};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user