For some reason, my attempt to create a depth buffer in my program is just not working. The program is a simple test program that pretty much shows a rotating dog statue. It uses SDL.
For some reason the polygons behind the dog are showing up:

Here's all my code concerning the depth buffer, in the order they're called:
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
glClearDepth(1);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
glDepthMask(GL_TRUE);
|
Thanks for your help.
Edited by - feagle814 on September 22, 2001 8:07:08 PM