glstate: Handle more than 32 texture units without segfaulting.
glstate: Handle more than 32 texture units without segfaulting.

Khronos headers only define symbols up to GL_TEXTURE31, but some
implementations support more.

This was a long standing issue, which got recently exposed by a
dumpActiveTexture change in commit
8374a0d66ca9228269e860089c1535fcda9f9c5f.

Fixes #304.

apitrace/apitrace,schulmar/apitrace,joshua5201/apitrace,trtt/apitrace,EoD/apitrace,trtt/apitrace,surround-io/apitrace,swq0553/apitrace,swq0553/apitrace,joshua5201/apitrace,apitrace/apitrace,schulmar/apitrace,joshua5201/apitrace,surround-io/apitrace,tuanthng/apitrace,trtt/apitrace,trtt/apitrace,tuanthng/apitrace,joshua5201/apitrace,joshua5201/apitrace,apitrace/apitrace,EoD/apitrace,EoD/apitrace,tuanthng/apitrace,tuanthng/apitrace,schulmar/apitrace,EoD/apitrace,tuanthng/apitrace,schulmar/apitrace,swq0553/apitrace,swq0553/apitrace,swq0553/apitrace,surround-io/apitrace,apitrace/apitrace,surround-io/apitrace,trtt/apitrace,EoD/apitrace,surround-io/apitrace,schulmar/apitrace