Skip to content

Commit

Permalink
render: Fix detection of fxc, dxc in build-shaders.sh
Browse files Browse the repository at this point in the history
We want `$USE_FXC` to default to the result of evaluating the variable
`$HAVE_FXC`, not the literal string `HAVE_FXC`, and the same for dxc.

Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Sep 17, 2024
1 parent 231ea07 commit 43d81a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/gpu/shaders/build-shaders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ which dxc &>/dev/null && HAVE_DXC=1 || HAVE_DXC=0
[ "$HAVE_FXC" != 0 ] || echo "fxc not in PATH; D3D11 shaders will not be rebuilt"
[ "$HAVE_DXC" != 0 ] || echo "dxc not in PATH; D3D12 shaders will not be rebuilt"

USE_FXC=${USE_FXC:-HAVE_FXC}
USE_DXC=${USE_DXC:-HAVE_DXC}
USE_FXC=${USE_FXC:-$HAVE_FXC}
USE_DXC=${USE_DXC:-$HAVE_DXC}

spirv_bundle="spir-v.h"
dxbc50_bundle="dxbc50.h"
Expand Down

0 comments on commit 43d81a7

Please sign in to comment.