zbuffer

i have a 16bit zbuffer
when i have this two triangles
0.0 0.0 1.0
1.0 0.0 1.0
1.0 1.0 1.0

0.0 0.0 1.0
0.5 0.0 1.0
0.5 0.5 1.0

there are stupid artifacts
how can i get them away

Try to switch glDepthFunc gl_less and gl_lequal.
Also try bringing one of triangles in front
0.0 0.0 1.01
0.5 0.0 1.01
0.5 0.5 1.01

Randy