I am loading a .obj model with assimp.
Simple models work fine, but as soon as I make something like a taurus, I get some back faces appearing.
http://imgur.com/4xKDiYX
The part where I turn depth testing on is:
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
glFrontFace(GL_CCW);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
(I'm clearing both the colour and depth buffer)
Any guess about what I'm messing up?
(I'll post or link more code if needed later)