projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243c2dd
)
forgot to return length in parse_array_len()
author
Brian
<brian@yutani.localnet.net>
Tue, 20 Feb 2007 22:20:46 +0000
(15:20 -0700)
committer
Brian
<brian@yutani.localnet.net>
Tue, 20 Feb 2007 22:20:46 +0000
(15:20 -0700)
src/mesa/shader/slang/slang_compile.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_compile.c
b/src/mesa/shader/slang/slang_compile.c
index f7aa297bfa6f075801a634f32127049fdf2055a3..86699b7cdb4505569839cfd242b0bdff2499ac14 100644
(file)
--- a/
src/mesa/shader/slang/slang_compile.c
+++ b/
src/mesa/shader/slang/slang_compile.c
@@
-360,6
+360,8
@@
parse_array_len(slang_parse_ctx * C, slang_output_ctx * O, GLuint * len)
_slang_simplify(&array_size, &space, C->atoms);
result = (array_size.type == SLANG_OPER_LITERAL_INT);
+ *len = (GLint) array_size.literal[0];
+
slang_operation_destruct(&array_size);
return result;
}