mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Use the casted value in exp().
This commit is contained in:
parent
033a0d29c5
commit
25c6d16b45
Notes:
Henri Verbeet
2025-01-28 13:20:11 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1360
@ -4120,7 +4120,7 @@ static bool intrinsic_exp(struct hlsl_ctx *ctx,
|
|||||||
return false;
|
return false;
|
||||||
hlsl_block_add_instr(params->instrs, coeff);
|
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 false;
|
||||||
|
|
||||||
return !!add_unary_arithmetic_expr(ctx, params->instrs, HLSL_OP1_EXP2, mul, loc);
|
return !!add_unary_arithmetic_expr(ctx, params->instrs, HLSL_OP1_EXP2, mul, loc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user