Remove cached light variables to reduce work when parsing DLs.

For comments, needs benchmarking.

Also removes some duplication between GL and the inactive D3D code.

Have as I said not yet benchmarked this properly but I would expect a very minor gain in some games and neutral in others.