Fix HLSL compiler error with else-rewriting in functions.
In functions with return types where we would use if-else rewriting,
we would potentially generate a spurious HLSL error that warned of
branches with no return value in the function.
This was causing a maps regression where overlays would not draw
in Earth mode.
Tested-by: Jamie Madill <firstname.lastname@example.org>
Reviewed-by: Nicolas Capens <email@example.com>
Reviewed-by: Shannon Woods <firstname.lastname@example.org>
2 files changed