Implement getTexParameter.