I don’t disable my textures. Current, I have three: two 3D texture and one 1D texture, its works with 2 shaders. I like to draw a simple wireframe object, but my program don’t work.
Any suggestion?
Here my code,
glUseProgram(0); //disable shaders (it works, I have 2 shaders ?)
glBindTexture(GL_TEXTURE_1D, 0);
glBindTexture(GL_TEXTURE_3D, 0);
//draw with traditional opengl color
glColor3f(1.0, 1.0, 1.0);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
drawWireframeObject();
Since you have no shader bound you are using fixed functionality. Therefore you need to enable the GL state to use each texture type (1D,2D,3D).
Therefore you need to add glEnable (GL_TEXTURE1D) etc after each glActiveTexture command. Don’t forget to disable afterwards when you are done.