Skyboxes are now rendered always behind everything else.

This commit is contained in:
Joseph Carter 2000-05-24 09:42:28 +00:00
parent 1cee02c55c
commit 43e49ccd73

View file

@ -1378,8 +1378,12 @@ void R_DrawWorld (void)
R_BlendLightmaps ();
// Draw the skybox --KB
// Adjust the depth range and draw the skybox, ensuring it's behind
// everhting else. This fixes the problem where some things are
// drawn as sky when something else should be drawn. --KB
glDepthRange (gldepthmax, gldepthmax);
R_DrawSkyBox ();
glDepthRange (gldepthmin, gldepthmax);
}