switch(vp->Parameters->Parameters[pi].Type){
- case NAMED_PARAMETER:
+ case PROGRAM_NAMED_PARAM:
fprintf(stderr, "%s", vp->Parameters->Parameters[pi].Name);
fprintf(stderr, "(NAMED_PARAMETER)");
break;
- case CONSTANT:
+ case PROGRAM_CONSTANT:
fprintf(stderr, "(CONSTANT)");
break;
- case STATE:
+ case PROGRAM_STATE_VAR:
fprintf(stderr, "(STATE)\n");
break;
-
+
+ default:
+ fprintf(stderr, "(UNK)\n");
+ break;
}
fprintf(stderr, "{ ");
for(pi=0; pi < mesa_vp->Parameters->NumParameters; pi++){
switch(mesa_vp->Parameters->Parameters[pi].Type){
- case STATE:
- case NAMED_PARAMETER:
+ case PROGRAM_STATE_VAR:
+ case PROGRAM_NAMED_PARAM:
//fprintf(stderr, "%s", vp->Parameters->Parameters[pi].Name);
- case CONSTANT:
+ case PROGRAM_CONSTANT:
*dst++=mesa_vp->Parameters->ParameterValues[pi][0];
*dst++=mesa_vp->Parameters->ParameterValues[pi][1];
*dst++=mesa_vp->Parameters->ParameterValues[pi][2];
vp->program.length=(o_inst - vp->program.body.i) * 4;
- if(u_temp_i < vp->num_temporaries)
- vp->translated=GL_FALSE; /* temps exhausted - program cannot be run */
- else
+ if(u_temp_i < vp->num_temporaries){
+ WARN_ONCE("Ran out of temps, num temps %d, us %d\n", vp->num_temporaries, u_temp_i);
+ vp->translated=GL_TRUE; //GL_FALSE; /* temps exhausted - program cannot be run */
+ }else
vp->translated=GL_TRUE;
}