Drawing Problem


I’ve got a problem, i’ve made a simple program to draw a height map. it’s working well but i don’t know why, i can view thought the montains of the map in some camera directions.

It seem that the montains draw after are display in front of the montains before… it’s very strange… how can i fix this problem ?

Thanks a lot

sounds like you don’t have depth testing enabled.

add this before your render:

if that doesn’t do it, could you post a screen shot?