From 858fb1c916311dab4a4aa0b77e3bf466dd11f6cb Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 19 Oct 2025 16:38:28 -0400 Subject: [PATCH] Don't draw the sky if we aren't supposed to --- src/r_plane.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/r_plane.cpp b/src/r_plane.cpp index f1dc3a552..a9f6854ea 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -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++)