In my application, i have enabled the depth test using
glutInitDisplayMode(GLUT_DEPTH | GLUT_RGB | GLUT_DOUBLE);
Right after that, i check whether it is enabled :
if(glIsEnabled(GL_DEPTH_TEST) == GL_TRUE)
But it is not getting enabled, and i am not getting an output.
Can someone explain to me what the problem is?