gl: clean glActiveTexture code