glEnable (GL_TEXTURE_2D) and glDisable (GL_TEXTURE_2D can be called up to 8 time a frame for a simple one-window case. This is not necessary as we access the textures directly in shaders. As such, if we are running in programmable mode (eg GL::shaders) these calls can be removed. Since they are effective, the driver will not stop us from setting the value once we have the context, so its just wasted time in libGL and on the GPU.
glEnable (GL_TEXTURE_2D) and glDisable (GL_TEXTURE_2D can be called up to 8 time a frame for a simple one-window case. This is not necessary as we access the textures directly in shaders. As such, if we are running in programmable mode (eg GL::shaders) these calls can be removed. Since they are effective, the driver will not stop us from setting the value once we have the context, so its just wasted time in libGL and on the GPU.