summaryrefslogtreecommitdiff
path: root/src/glsl/pp/sl_pp_if.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-11-20 08:59:50 +0100
committerMichal Krol <michal@vmware.com>2009-11-20 08:59:50 +0100
commitb89cd8afc510541a18f2f5c04884637626e104e1 (patch)
tree884ab2925e280177e7ae834d7a546bc99959f225 /src/glsl/pp/sl_pp_if.c
parent547ac2869b1e1bbdbf8e51cd40d50e6ab0f4f9f1 (diff)
glsl/pp: Expand unknown identifiers to 0 in if/elif expressions.
Diffstat (limited to 'src/glsl/pp/sl_pp_if.c')
-rw-r--r--src/glsl/pp/sl_pp_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_if.c b/src/glsl/pp/sl_pp_if.c
index a0b3635dd5..6610bc69f3 100644
--- a/src/glsl/pp/sl_pp_if.c
+++ b/src/glsl/pp/sl_pp_if.c
@@ -137,7 +137,7 @@ _parse_if(struct sl_pp_context *context,
return -1;
}
} else {
- 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_unknown_to_0)) {
free(state.out);
return -1;
}