summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-10 10:33:38 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-10 10:33:38 -0600
commitfa7a5898761fc106c9dbef6f640ce4654eae5136 (patch)
treeb68d27ea1de1f77e3ee6f24910efe0322c47dd15
parent44200421e8e15e603464e4a3e9d10f46787fc737 (diff)
Size of input_to_index array should be VERT_ATTRIB_MAX.
This fixes an out of bounds array write that was causing the glsl/bump demo to render incorrectly.
-rw-r--r--src/mesa/state_tracker/st_program.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h
index ae89055e82..51877af8da 100644
--- 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];