Fix frag shader link for X1950 cards with 4 lights max

Loop NUM_LIGHTS replaced by blocks in Fragment shader to be compatible
with old graphic cards like ATI X1950.