summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-03-31 09:09:21 -0600
committerBrian <brian@yutani.localnet.net>2007-03-31 09:09:21 -0600
commitec6c8f86f3fa0fa19d34dfa1ee1f9e4610e6e9d6 (patch)
tree5fccf7930829afa4393f2a317ce835106d0d289d /src/mesa/shader/slang
parente608d92c5b42d192772066194531db8bfaff86ce (diff)
fix scoping mistake in previous commit that checked for writable LHSs
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index b1f6db8ac3..0c14e64cf9 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -2143,7 +2143,7 @@ _slang_gen_assignment(slang_assemble_ctx * A, slang_operation *oper)
if (oper->children[0].type == SLANG_OPER_IDENTIFIER) {
/* Check that var is writeable */
slang_variable *var
- = _slang_locate_variable(oper->locals,
+ = _slang_locate_variable(oper->children[0].locals,
oper->children[0].a_id, GL_TRUE);
if (!var) {
slang_info_log_error(A->log, "undefined variable '%s'",