I used to program OpenGL in RealBasic, but I'm learning C++ now. To initialize OGL I simply ported the code from RB, and now depth testing doesn't work. I use this block of code right after I initialize an AGLContext and set everything up, maybe the problem's in here:
void BaseglInitializeViewport (void)
glClearColor(0.0, 0.0, 0.0, 0.0);
Also, when I use AGL_RENDERER_ID, AGL_RENDERER_GENERIC_ID to get a software OGL renderer, depth testing works fine, but under my ATI HWA renderer, with the same code, it doesn't work.