I am trying to do texture mapping, (from NeHe tutorials) and NeHe basically builds on its previous tutorials.
So I had a spinning cube on the previous tutorial, and I wanted to texture map an image to it. The tutorial told me to change the line
glEnable(GL_DEPTH_TEST);
to
glEnable(GL_TEXTURE_2D);
so that it would enable texture mapping. But here’s the weird thing: the cube sides that were solid before are now semi-transparent, so that you can see through to the other sides of the cube when it rotates. Did I miss something?