I read a height map from a file and draw it using triangular stripes.
Height map:

This works well, here's what it looks like:

It looks good, but only from this direction. If you slightly rotate the camera, this will happen:

It seems that my depth buffer is damaged. I turned it on and it works well with a different geometry.
Has anyone had such a problem? I donβt even know what to look for. Thanks!
Edit:
My projection matrix:
1.2062851 0.0 0.0 0.0
0.0 2.1445069 0.0 0.0
0.0 0.0 -1.0 -1.0
0.0 0.0 -0.2 0.0
_fieldOfView(50.0f), _nearPlane(0.1f), _farPlane(10000.0f), _viewportAspectRatio(16.0f/9.0f)
source share