projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc80849
)
mesa: move declaration before code
author
Vinson Lee
<vlee@vmware.com>
Fri, 25 Sep 2009 14:51:57 +0000
(08:51 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 25 Sep 2009 14:51:57 +0000
(08:51 -0600)
src/mesa/shader/nvvertparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/nvvertparse.c
b/src/mesa/shader/nvvertparse.c
index 6ab8a14cb9b394408322df54b16c41801e0acc5a..8574016050c60a63391b8a315ca5b75eb6985397 100644
(file)
--- a/
src/mesa/shader/nvvertparse.c
+++ b/
src/mesa/shader/nvvertparse.c
@@
-1415,9
+1415,10
@@
_mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget,
* upload everything, _mesa_layout_parameters is the answer.
*/
for (i = 0; i < MAX_NV_VERTEX_PROGRAM_PARAMS; i++) {
+ GLint index;
state_tokens[2] = i;
- in
t in
dex = _mesa_add_state_reference(program->Base.Parameters,
-
state_tokens);
+ index = _mesa_add_state_reference(program->Base.Parameters,
+ state_tokens);
assert(index == i);
}
program->Base.NumParameters = program->Base.Parameters->NumParameters;