Transparent image


If you see the attached image, you see that my objects are transparent. However, I put

glPolygonMode(GL_FRONT, GL_FILL);

Is this correct and the mistake is another place?


What attached image?

Sorry, here’s the image ><

glEnable(GL_DEPTH_TEST); ?
And did your create a GL context with depth buffer ?

Thanks! I forget glEnable(GL_DEPTH_TEST);