summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/arbprogparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 678d40bb68..6ca525fb10 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -560,7 +560,7 @@ var_cache_find (struct var_cache *va, GLubyte * name)
while (va) {
if (!strcmp ( (const char*) name, (const char*) va->name)) {
if (va->type == vt_alias)
- return var_cache_find (first, va->name);
+ return va->alias_binding;
return va;
}