diff options
Diffstat (limited to 'src/mesa/program/symbol_table.c')
-rw-r--r-- | src/mesa/program/symbol_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/symbol_table.c b/src/mesa/program/symbol_table.c index f86588b76bd..2a544e03635 100644 --- a/src/mesa/program/symbol_table.c +++ b/src/mesa/program/symbol_table.c @@ -154,7 +154,7 @@ _mesa_symbol_table_symbol_scope(struct _mesa_symbol_table *table, if (sym) { assert(sym->depth <= table->depth); - return sym->depth - table->depth; + return table->depth - sym->depth; } return -1; |