hendu wrote:Is that even legal (= compliant with GL ES standard)?
Did not bother to research long enough
Thats also why i called it a hack, hehe.
hendu wrote:The spec says _both_ "foo" and "foo[0]" refer to the first array element. And seems some mobile drivers only do one and some only the other. Sigh..
Hmm there are really drivers which export foo and not foo[0] ?
Logically i find exporting only foo[0] more plausible than exporting only foo.
Anyways, i fixed it, and my hack should cover both cases, im quite happy with it
Regarding the performance issues i have, i found out that the fixed pipeline emulation shader used is terribly slow on the POWERVR SGX used in the iPhone.
It uses discard which is a big nono accoring to PowerVR specs, commenting out all discard instances and disabling lightning calculation puts me up to 25-30 fps.

