glthread: add support for TexParameteri and SamplerParameteri functions