check before calling glClientActiveTexture