Skybox visual glitch

Hi, I’m trying to create a skybox with a cube and depth testing. I’m getting a visual glitch that you can see in this picture

as you can see not all the skybox is drawn, just the part you’re looking at directly, a section is cut off (this undrawn section moves when you turn)

this is my code:

glPushMatrix();	
glDisable(GL_DEPTH_TEST);
glTranslatef(cam.fOrigin.x, cam.fOrigin.y, cam.fOrigin.z);
Draw_CUBE();
glPopMatrix(); 
glEnable(GL_DEPTH_TEST);

any ideas?

I had a similar problem, maybe this can help you: http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Main=59585&Number=309296

looks like it’s being clipped by the near plane.
What’s in DRAW_CUBE and what depth state have you set inc. Perspective matrix?

yeah I figured it out, the cube that I had drawn around the camera was too small and that was causing it to get clipped, I scaled it by 1.2 and it fixed the problem, thanks for the replys