Skip to content

Commit

Permalink
Prefer using custom D3D12/ local dxcompiler.dll in demos project
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jan 10, 2025
1 parent f6c0162 commit b46b8d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion util/test/demos/d3d12/d3d12_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,12 @@ void D3D12GraphicsTest::Prepare(int argc, char **argv)
d3dcompiler = LoadLibraryA("d3dcompiler_44.dll");
if(!d3dcompiler)
d3dcompiler = LoadLibraryA("d3dcompiler_43.dll");
dxcompiler = LoadLibraryA("dxcompiler.dll");

// try loading dxcompiler from a local plugin folder first, since when building we copy the SDK
// version next to our exe and that may be old
dxcompiler = LoadLibraryA("D3D12/dxcompiler.dll");
if(!dxcompiler)
dxcompiler = LoadLibraryA("dxcompiler.dll");

if(!d3d12)
{
Expand Down

0 comments on commit b46b8d9

Please sign in to comment.