Similarly, fill in missing input slots in the vertex-array +

NV_vertex_program path.
This commit is contained in:
Keith Whitwell
2006-11-02 18:02:17 +00:00
parent 5a652f5957
commit 301acdf34a

View 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