summaryrefslogtreecommitdiff
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-11-02 18:02:17 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-11-02 18:02:17 +0000
commit301acdf34ad01315f41c14638d92aa7fe0c2d2dc (patch)
treee106b0636bbb4471cc75c765cf66a00ccbaedeb6 /src/mesa/vbo
parent5a652f595716a82ebd79e33011f6082199c4b0d0 (diff)
Similarly, fill in missing input slots in the vertex-array +
NV_vertex_program path.
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_exec_array.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index 481c4ee546..aab5748626 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -156,6 +156,13 @@ static void recalculate_input_bindings( GLcontext *ctx )
else
inputs[i] = &vbo->legacy_currval[i];
}
+
+ /* Could use just about anything, just to fill in the empty
+ * slots:
+ */
+ for (i = VERT_ATTRIB_GENERIC0; i < VERT_ATTRIB_MAX; i++)
+ inputs[i] = &vbo->generic_currval[i - VERT_ATTRIB_GENERIC0];
+
break;
case VP_ARB:
/* ARB_vertex_program - Only the attribute zero (position) array