Don't draw the sky if we aren't supposed to

This commit is contained in:
NepDisk 2025-10-19 16:38:28 -04:00
parent df581ae69f
commit 858fb1c916

View file

@ -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++)