Array index was used before limit check (found by cppcheck tool).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code@4948 dfc29bdd-3216-0410-991c-e03cc46cb475
LightType did send too much data (wasn't causing troubles as the values got overwritten again)
Solid material shader should only have 1 texture coordinate.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code@4949 dfc29bdd-3216-0410-991c-e03cc46cb475