summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_line.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-11-20 08:59:50 +0100
committerMichal Krol <[email protected]>2009-11-20 08:59:50 +0100
commitb89cd8afc510541a18f2f5c04884637626e104e1 (patch)
tree884ab2925e280177e7ae834d7a546bc99959f225 /src/glsl/pp/sl_pp_line.c
parent547ac2869b1e1bbdbf8e51cd40d50e6ab0f4f9f1 (diff)
glsl/pp: Expand unknown identifiers to 0 in if/elif expressions.
Diffstat (limited to 'src/glsl/pp/sl_pp_line.c')
-rw-r--r--src/glsl/pp/sl_pp_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_line.c b/src/glsl/pp/sl_pp_line.c
index fc2dd89e68b..ed5acc697ce 100644
--- a/src/glsl/pp/sl_pp_line.c
+++ b/src/glsl/pp/sl_pp_line.c
@@ -53,7 +53,7 @@ sl_pp_process_line(struct sl_pp_context *context,
break;
case SL_PP_IDENTIFIER:
- if (sl_pp_macro_expand(context, input, &i, NULL, &state, 0)) {
+ if (sl_pp_macro_expand(context, input, &i, NULL, &state, sl_pp_macro_expand_normal)) {
free(state.out);
return -1;
}