I have a working ARB_fp shader using alot of temporary variables. When I exchange the folowing
PARAM factor = { 0.003, 0.003, 0.0, 0.0};
with
PARAM factor = program.env[0];
I get the error:
“error: too many temporaries”.
With the working shader I get the following counts:
31 of 32 temporaries used
All other counts are ok. ( 50 of 1024 ALU, etc. )
Is there something I don’t know about ProgramEnvParameters?