mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 16:36:25 +00:00
render: Fix detection of fxc, dxc in build-shaders.sh
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 <smcv@debian.org>
This commit is contained in:

committed by
Sam Lantinga

parent
11129761e7
commit
13500bbf50
@@ -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_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"
|
[ "$HAVE_DXC" != 0 ] || echo "dxc not in PATH; D3D12 shaders will not be rebuilt"
|
||||||
|
|
||||||
USE_FXC=${USE_FXC:-HAVE_FXC}
|
USE_FXC=${USE_FXC:-$HAVE_FXC}
|
||||||
USE_DXC=${USE_DXC:-HAVE_DXC}
|
USE_DXC=${USE_DXC:-$HAVE_DXC}
|
||||||
|
|
||||||
spirv_bundle="spir-v.h"
|
spirv_bundle="spir-v.h"
|
||||||
dxbc50_bundle="dxbc50.h"
|
dxbc50_bundle="dxbc50.h"
|
||||||
|
Reference in New Issue
Block a user