basic question about quads

Recommended Posts

I am working a on simple 3d model with openGL, and something did''n quite work, probably i just miss a line of setting,
i am drawing model, the second square is overlaping the first one. how come?
http://www.thinbox.ca/tests/gus/images/Image2.gif
the red one is suppose to be under.