In OpenGL I have always understood that glEnable(GL_TEXTURE1D), glEnable(GL_TEXTURE2D) and/or glEnable(GL_TEXTURE3D) (and corresponding glDisable) is a per texture unit parameter.
Recently I tried to confirm this but have not found any clear documentation confirming either way regarding this question.
Put simply and in code, should I be doing this
glActiveTexture(GL_TEXTURE0);
glEnable(GL_TEXTURE_2D);
... bind etc ...
glActiveTexture(GL_TEXTURE1);
glEnable(GL_TEXTURE_2D);
... bind etc ...
or this
glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE0);
... bind etc ...
glActiveTexture(GL_TEXTURE1);
.... bind etc ...
I was hoping to find some clarity.