I was trying to run an OpenGL code, it didn\'t have GL_DEPTH_BUFFER_BIT cleared in glClear(), because of which I couldn\'t render my scene. I added this bit, an