Original Post
Hi, i´m rendering two triangles, along the z axis, the one is farther away, but when i render it (they rotate) the second (the one which is farther away) overlaps the first.
i have done glEnable(GL_DEPTH_TEST)
and call glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
each frame before drawing.
what is wrong with my code??
thanks
Gammastrahler
[edited by - Gammastrahler on May 20, 2003 4:59:27 PM]