summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-11-10 00:16:09 +0100
committerMichal Krol <[email protected]>2009-11-10 00:16:09 +0100
commit4703d7d3f8d50a0ff00dd043e999b0b8b11d45e6 (patch)
tree924da176cc7f6104253b5a5f61fcfced41f5597c /src/mesa/shader/slang
parentb5c8c87eab4cbc4f05cbd98d7647b9b83607f976 (diff)
slang: Update for glsl/pp interface changes.
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_compile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index ce3a85ebf8a..b8b7b3d494a 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -2589,12 +2589,14 @@ compile_with_grammar(grammar id, const char *source, slang_code_unit * unit,
int result;
struct sl_pp_purify_options options;
char *outbuf;
+ char errmsg[200] = "";
+ unsigned int errline = 0;
struct sl_pp_token_info *intokens;
unsigned int tokens_eaten;
memset(&options, 0, sizeof(options));
- if (sl_pp_purify(source, &options, &outbuf)) {
- slang_info_log_error(infolog, "unable to preprocess the source");
+ if (sl_pp_purify(source, &options, &outbuf, errmsg, sizeof(errmsg), &errline)) {
+ slang_info_log_error(infolog, errmsg);
return GL_FALSE;
}