projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73d02d7
)
mesa: Move var declaration to top of scope.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 6 Jan 2009 19:18:13 +0000
(19:18 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 8 Jan 2009 12:05:22 +0000
(12:05 +0000)
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
d8aefd6
..
b8044b1
100644
(file)
--- a/
src/mesa/shader/slang/slang_compile.c
+++ b/
src/mesa/shader/slang/slang_compile.c
@@
-1470,9
+1470,9
@@
parse_expression(slang_parse_ctx * C, slang_output_ctx * O,
RETURN0;
}
else {
+ slang_operation array_size;
array_constructor = GL_TRUE;
/* parse the array constructor size */
- slang_operation array_size;
slang_operation_construct(&array_size);
if (!parse_expression(C, O, &array_size)) {
slang_operation_destruct(&array_size);