Module: wine Branch: master Commit: 0d34c9dab78c35f5b041e4138357da063611dc79 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0d34c9dab78c35f5b041e41383...
Author: Matteo Bruni mbruni@codeweavers.com Date: Tue Jul 10 15:39:41 2012 +0200
d3dcompiler: Fix line info update.
---
dlls/d3dcompiler_43/hlsl.y | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index a3e5f6e..ea6bb12 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y @@ -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; }