Hooked up the texture format stuff. It could really use a default value check to prevent setting all these gl state thingies.