Similarly, fill in missing input slots in the vertex-array +
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 2 Nov 2006 18:02:17 +0000 (18:02 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 2 Nov 2006 18:02:17 +0000 (18:02 +0000)
NV_vertex_program path.

src/mesa/vbo/vbo_exec_array.c

index 481c4ee5469043d7f0ee606e54603d0fafabe904..aab5748626699342bfb1bf6825a97033428bb144 100644 (file)
@@ -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