add missing plane bounds check to R_DrawSkyPlane

This commit is contained in:
Alug committed 2025-06-10 23:01:58 +02:00
1 parent 089d47a251
commit 638e00710c
1 file changed
+3
+3
View File
@@ -746,6 +746,9 @@ static void R_DrawSkyPlane(visplane_t *pl, void(*colfunc2)(drawcolumndata_t*), b
INT32 x;
drawcolumndata_t dc = {};
if (!(pl->minx <= pl->maxx))
return;
// 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)