projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
421ce18
)
array overflow fix
author
Zou Nan hai
<nanhai.zou@intel.com>
Fri, 9 Feb 2007 05:28:56 +0000
(13:28 +0800)
committer
Zou Nan hai
<nanhai.zou@intel.com>
Fri, 9 Feb 2007 05:28:56 +0000
(13:28 +0800)
src/mesa/vbo/vbo_exec_array.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_array.c
b/src/mesa/vbo/vbo_exec_array.c
index f96df5f16433f02047338cd5fb2d44158485b94f..7ea55470acb6f8d3d63b9d1368bbdd44014f2f40 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_array.c
+++ b/
src/mesa/vbo/vbo_exec_array.c
@@
-147,8
+147,8
@@
static void recalculate_input_bindings( GLcontext *ctx )
/* Could use just about anything, just to fill in the empty
* slots:
*/
- for (i = MAT_ATTRIB_MAX; i < VERT_ATTRIB_MAX; i++)
- inputs[
i] = &vbo->generic_currval[i - VERT_ATTRIB_GENERIC0
];
+ for (i = MAT_ATTRIB_MAX; i < VERT_ATTRIB_MAX
- VERT_ATTRIB_GENERIC0
; i++)
+ inputs[
VERT_ATTRIB_GENERIC0 + i] = &vbo->generic_currval[i
];
break;
case VP_NV: