Skip to content
Snippets Groups Projects
Commit 25c6d16b authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Henri Verbeet
Browse files

vkd3d-shader/hlsl: Use the casted value in exp().

parent 033a0d29
Branches
Tags
1 merge request!1360vkd3d-shader/hlsl: Use the casted value in exp().
Pipeline #37159 skipped
......@@ -4120,7 +4120,7 @@ static bool intrinsic_exp(struct hlsl_ctx *ctx,
return false;
hlsl_block_add_instr(params->instrs, coeff);
if (!(mul = add_binary_arithmetic_expr(ctx, params->instrs, HLSL_OP2_MUL, coeff, params->args[0], loc)))
if (!(mul = add_binary_arithmetic_expr(ctx, params->instrs, HLSL_OP2_MUL, coeff, arg, loc)))
return false;
return !!add_unary_arithmetic_expr(ctx, params->instrs, HLSL_OP1_EXP2, mul, loc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment