Added some per-texture-unit state PName1Is.
Make TextureTarget a class.
Removed dead code.