struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
struct arb_vp_machine *m = ARB_VP_MACHINE(stage);
struct tnl_compiled_program *p;
- GLuint i, j, outputs;
+ GLuint i, j;
+ GLbitfield outputs;
if (!program || program->IsNVProgram)
return GL_TRUE;
}
}
- for (i = 0; i < 15; i++) {
+ for (i = 0; i < VERT_RESULT_MAX; i++) {
if (program->OutputsWritten & (1<<i)) {
GLuint j = m->nr_outputs++;
m->output[j].idx = i;
struct input input[_TNL_ATTRIB_MAX];
GLuint nr_inputs;
- struct output output[15];
+ struct output output[VERT_RESULT_MAX];
GLuint nr_outputs;
GLvector4f attribs[VERT_RESULT_MAX]; /**< result vectors. */