Added explicit state update.

The texture unit and the buffer texture are now explicitly bound, as part of the struggle against the lighting bug.