Depth Test not Working
I build a structure up from triangles (not strips) going down the y-axis along the x-axis. However the triangles drawn last appear on top whether they actually exist behind or in front.
Here is my code setting up the depth buffer:
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
I clear the depth buffer one time before I draw the the object.
Any ideas on what could cause this?