gltrace: add texture state variables

Add support for texture state variables, and the necessary transformations
that happen during glTexImage*(), gl[Gen/Delete]Textures, glBindTexture
and glTexParameter.

Change-Id: I09060dfb41726d91a9abf478fc8cba67fd41d5fa
18 files changed