add missing plane bounds check to R_DrawSkyPlane
This commit is contained in:
1 parent
089d47a251
commit
638e00710c
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user