I wanted to render a thing on the screen, it used face culling.
To debug I used glPolygonMode to see lines instead of fill faces
I did that:
glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); glPolygonMode(GL_FRONT, GL_LINE);
But it worked only like that:
glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); glPolygonMode(GL_BACK, GL_LINE);
It’s like glPolygonMode understands GL_BACK as GL_FRONT.
It works the same way independently is added the code
I didn’t find the answer anywhere.
OpenGL version: 3.3.0
Graphics card: nVidia GeForce 9400 GT
OS: Window 7