vkd3d-shader/hlsl: Add trailing dots to warning messages.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Francisco Casas <fcasas@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani
2022-04-22 12:24:58 +02:00
committed by Alexandre Julliard
parent c680b674d6
commit 0e8098ccfe

View File

@@ -275,7 +275,7 @@ static bool fold_div(struct hlsl_ctx *ctx, struct hlsl_ir_constant *dst,
if (ctx->profile->major_version >= 4 && src2->value[k].f == 0) if (ctx->profile->major_version >= 4 && src2->value[k].f == 0)
{ {
hlsl_warning(ctx, &dst->node.loc, VKD3D_SHADER_WARNING_HLSL_DIVISION_BY_ZERO, hlsl_warning(ctx, &dst->node.loc, VKD3D_SHADER_WARNING_HLSL_DIVISION_BY_ZERO,
"Floating point division by zero"); "Floating point division by zero.");
} }
dst->value[k].f = src1->value[k].f / src2->value[k].f; dst->value[k].f = src1->value[k].f / src2->value[k].f;
if (ctx->profile->major_version < 4 && isinf(dst->value[k].f)) if (ctx->profile->major_version < 4 && isinf(dst->value[k].f))
@@ -289,7 +289,7 @@ static bool fold_div(struct hlsl_ctx *ctx, struct hlsl_ir_constant *dst,
if (src2->value[k].d == 0) if (src2->value[k].d == 0)
{ {
hlsl_warning(ctx, &dst->node.loc, VKD3D_SHADER_WARNING_HLSL_DIVISION_BY_ZERO, hlsl_warning(ctx, &dst->node.loc, VKD3D_SHADER_WARNING_HLSL_DIVISION_BY_ZERO,
"Floating point division by zero"); "Floating point division by zero.");
} }
dst->value[k].d = src1->value[k].d / src2->value[k].d; dst->value[k].d = src1->value[k].d / src2->value[k].d;
break; break;