projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4420042
)
Size of input_to_index array should be VERT_ATTRIB_MAX.
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 16:33:38 +0000
(10:33 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 16:33:38 +0000
(10:33 -0600)
This fixes an out of bounds array write that was causing the glsl/bump demo to render incorrectly.
src/mesa/state_tracker/st_program.h
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_program.h
b/src/mesa/state_tracker/st_program.h
index ae89055e82c7bb43d97e5e0a7d2574207000cf60..51877af8da95f926bd26a44c5aefa0dbaf244240 100644
(file)
--- a/
src/mesa/state_tracker/st_program.h
+++ b/
src/mesa/state_tracker/st_program.h
@@
-82,7
+82,7
@@
struct st_vertex_program
GLuint serialNo;
/** maps a Mesa VERT_ATTRIB_x to a packed TGSI input index */
- GLuint input_to_index[
MAX_VERTEX_PROGRAM_ATTRIBS
];
+ GLuint input_to_index[
VERT_ATTRIB_MAX
];
/** maps a TGSI input index back to a Mesa VERT_ATTRIB_x */
GLuint index_to_input[PIPE_MAX_SHADER_INPUTS];