diff --git a/src/r_plane.cpp b/src/r_plane.cpp index 08bc385eb..1d4b1e2d1 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -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)