gltrace: Use _glGetInteger where possible.

Simplifies/condenses code somewhat.