mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-21 19:01:20 +00:00
Skyboxes are now rendered always behind everything else.
This commit is contained in:
parent
1cee02c55c
commit
43e49ccd73
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue