Whenever I draw anything and the depth buffer is enabled a get a blank screen, if I turn off the depth buffer I get the objects I expect to see. I’m using win32 and I think that everything is setup right. Any help would be greatly appricated.
hmmm. That’s weird. How many bits have you asked for the depth buffer in the pixel format?
Maybe you did the really embarrasing fault by not setting the far/near clipping planes far/near enough?
are you clearing the depth buffer?
I figured it out, and the problem was really stupid, I had to set the DepthFunc to GL_GREATER and it started working fine.