d3dcompiler: Fix line info update.

This commit is contained in:
Matteo Bruni 2012-07-10 15:39:41 +02:00 committed by Alexandre Julliard
parent b22de982c0
commit 0d34c9dab7
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ hlsl_prog: /* empty */
preproc_directive: PRE_LINE STRING
{
TRACE("Updating line information to file %s, line %u\n", debugstr_a($2), $1);
hlsl_ctx.line_no = $1 - 1;
hlsl_ctx.line_no = $1;
d3dcompiler_free(hlsl_ctx.source_file);
hlsl_ctx.source_file = $2;
}