Am Dienstag, 21. April 2009 23:37:51 schrieb Tobias Jakobi:
- unsigned char idx[MAX_FRAGMENT_SAMPLERS]; /* indices to the real
constant */ I don't remember how you plan to use the ps_np2fixup_t structure in the ARB backend, but an unsigned char might turn out to be too limited if you end up storing ARB constant numbers in there, since cards can have more than 256 constants. For your GLSL code it is good enough because you just store values from 1-8.