diff options
author | Michal Krol <[email protected]> | 2009-09-07 10:01:11 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-07 10:12:12 +0200 |
commit | 5ad89377522061775b467d84bf6dc14305cccfbf (patch) | |
tree | f97982b19e22b0ebc62769dcf09017974b989eae /src/glsl | |
parent | b7960b3d3ac347604bfec705a50d6c2eda439eef (diff) |
glsl: Add error messages for version parser.
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/pp/sl_pp_version.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/pp/sl_pp_version.c b/src/glsl/pp/sl_pp_version.c index 80f7e971016..82acdd1d5a4 100644 --- a/src/glsl/pp/sl_pp_version.c +++ b/src/glsl/pp/sl_pp_version.c @@ -137,7 +137,7 @@ sl_pp_version(struct sl_pp_context *context, return -1; } if (_parse_integer(num, version)) { - /* Expected version number. */ + strcpy(context->error_msg, "expected version number after `#version'"); return -1; } i++; @@ -146,7 +146,7 @@ sl_pp_version(struct sl_pp_context *context, break; default: - /* Expected version number. */ + strcpy(context->error_msg, "expected version number after `#version'"); return -1; } } @@ -169,7 +169,7 @@ sl_pp_version(struct sl_pp_context *context, break; default: - /* Expected end of line. */ + strcpy(context->error_msg, "expected end of line after version number"); return -1; } } |