This is garbage. The constants GL_DEPTH_TEST (0x0B71) and GL_CULL_FACE (0x0B44) are not flags (GL_COLOR_BUFFER_BIT and GL_DEPTH_BUFFER_BIT are, hence the _BIT).
You have to call glEnable(GL_DEPTH_TEST) and glEnable(GL_CULL_FACE) seperately.
[QUOTE=Agent D;1258049]This is garbage. The constants GL_DEPTH_TEST (0x0B71) and GL_CULL_FACE (0x0B44) are not flags (GL_COLOR_BUFFER_BIT and GL_DEPTH_BUFFER_BIT are, hence the _BIT).
You have to call glEnable(GL_DEPTH_TEST) and glEnable(GL_CULL_FACE) seperately.[/QUOTE]
You are correct of course. I had another bug that i fixed after that.
All works well now. thanks!