summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_token.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-12-19 09:55:27 +0100
committerMichal Krol <[email protected]>2009-12-20 21:18:57 +0100
commite9aa65d2b751f81fecd365fd6a550562417a3ec2 (patch)
tree4d02b2597425e6e71f6616760a9a6a626a9638d2 /src/glsl/pp/sl_pp_token.c
parenta6e663def416f73ea8c0c65e8ee6a4dfaaeffae2 (diff)
glsl/pp: Report correct error line for purify and tokeniser errors.
Diffstat (limited to 'src/glsl/pp/sl_pp_token.c')
-rw-r--r--src/glsl/pp/sl_pp_token.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/pp/sl_pp_token.c b/src/glsl/pp/sl_pp_token.c
index e9a60b6c508..d1abbd5257c 100644
--- a/src/glsl/pp/sl_pp_token.c
+++ b/src/glsl/pp/sl_pp_token.c
@@ -39,13 +39,12 @@ static int
_pure_getc(struct sl_pp_context *context)
{
char c;
- unsigned int current_line;
if (context->getc_buf_size) {
return context->getc_buf[--context->getc_buf_size];
}
- if (sl_pp_purify_getc(&context->pure, &c, &current_line, context->error_msg, sizeof(context->error_msg)) == 0) {
+ if (sl_pp_purify_getc(&context->pure, &c, &context->error_line, context->error_msg, sizeof(context->error_msg)) == 0) {
return PURE_ERROR;
}
return c;