glstate: Unify flushing of GL errors.
glstate: Move static C code out of Python scripts.
glstate: Cleanup/complete formats description.
gltrace: Handle packed vertex attribute formats properly.