summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_builtin.c')
-rw-r--r--src/mesa/shader/slang/slang_builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c
index 7f4290b91fa..2e4687afc57 100644
--- a/src/mesa/shader/slang/slang_builtin.c
+++ b/src/mesa/shader/slang/slang_builtin.c
@@ -348,7 +348,7 @@ _slang_alloc_statevar(slang_ir_node *n,
GLuint swizzle;
if (n->Opcode == IR_FIELD) {
- field = n->Target;
+ field = n->Field;
n = n->Children[0];
}