Commit 2d79e04b authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Print float constants with more precision.

parent d51c5723
......@@ -1831,10 +1831,10 @@ static void debug_dump_ir_constant(const struct hlsl_ir_constant *constant)
switch (type->base_type)
{
case HLSL_TYPE_FLOAT:
wine_dbg_printf("%g ", (double)constant->value.f[y * type->dimx + x]);
wine_dbg_printf("%.8e ", constant->value.f[y * type->dimx + x]);
break;
case HLSL_TYPE_DOUBLE:
wine_dbg_printf("%g ", constant->value.d[y * type->dimx + x]);
wine_dbg_printf("%.16e ", constant->value.d[y * type->dimx + x]);
break;
case HLSL_TYPE_INT:
wine_dbg_printf("%d ", constant->value.i[y * type->dimx + x]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment