summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-06-08 20:52:47 +0200
committerMichal Krol <michal@vmware.com>2009-06-08 20:52:47 +0200
commit19a54d9f1055c366fd77026dd67007a8d5921f58 (patch)
treef9e6167f378b91e404ff97787371acb8cfcf504a /src/mesa/shader/slang
parent854151ba62e4b1cb6a755f6c131ee2e0f680f39b (diff)
glsl: Fix preprocessor define argument parsing for dead sections.
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_preprocess.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c
index c3df76ded5..c16a111132 100644
--- a/src/mesa/shader/slang/slang_preprocess.c
+++ b/src/mesa/shader/slang/slang_preprocess.c
@@ -1035,11 +1035,11 @@ preprocess_source (slang_string *output, const char *source,
/* Parse optional macro parameters. */
while (prod[i++] != PARAM_END) {
- if (state.cond.top->effective) {
- pp_symbol *param;
+ pp_symbol *param;
- id = (const char *) (&prod[i]);
- idlen = _mesa_strlen (id);
+ id = (const char *) (&prod[i]);
+ idlen = _mesa_strlen (id);
+ if (state.cond.top->effective) {
pp_annotate (output, "%s, ", id);
param = pp_symbols_push (&symbol->parameters);
if (param == NULL)