mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 10:20:30 +01:00
glsl: Fix preprocessor define argument parsing for dead sections.
This commit is contained in:
parent
854151ba62
commit
19a54d9f10
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue