projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e608d92
)
fix scoping mistake in previous commit that checked for writable LHSs
author
Brian
<brian@yutani.localnet.net>
Sat, 31 Mar 2007 15:09:21 +0000
(09:09 -0600)
committer
Brian
<brian@yutani.localnet.net>
Sat, 31 Mar 2007 15:09:21 +0000
(09:09 -0600)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index b1f6db8ac362030b889bdf52ef8cbc8ec3003255..0c14e64cf97d9c7966a22985f3670ed0c8d2896e 100644
(file)
--- 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'",