hidden surface removal

Hi,

I’ve tried to use glEnable(GL_DEPTH_TEST) & glClear(GL_DEPTH_BUFFER_BIT) for depth testing, but it’s not working at all! Does anyone have any ideas what I might be doing wrong?

Thanx

Hi !

Have you requested a depth buffer in the rendering context ?

Mikael

hey thanx!! =0)

duh what a stupid mistake…