Don't draw the sky if we aren't supposed to
This commit is contained in:
parent
df581ae69f
commit
858fb1c916
1 changed files with 7 additions and 0 deletions
|
|
@ -759,6 +759,13 @@ void R_DrawSkyPlanes(void)
|
|||
|
||||
ZoneScoped;
|
||||
|
||||
// If we're not supposed to draw the sky (e.g. for skyboxes), don't do anything!
|
||||
// This probably utterly ruins sky rendering for FOFs and polyobjects, unfortunately
|
||||
if (!newview->sky)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
srb2::ThreadPool::Sema tp_sema;
|
||||
srb2::g_main_threadpool->begin_sema();
|
||||
for (i = 0; i < MAXVISPLANES; i++, pl++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue