glstate: Use glGet_texture key for enable/binding parameters.

Instead of using ad-hoc code.
glstate: Don't treat GL_TEXTURE_BUFFER as boolean.