diff --git a/src/hardware/hw_bsp.c b/src/hardware/hw_bsp.c index cd7f8eb67..d74c1f8ee 100644 --- a/src/hardware/hw_bsp.c +++ b/src/hardware/hw_bsp.c @@ -18,8 +18,6 @@ #include "../r_local.h" #include "../z_zone.h" -boolean gl_sky_found = true; - // From PrBoom: // // e6y: Check whether the player can look beyond this line @@ -690,11 +688,6 @@ static void HWR_Subsector(size_t num) } } - // Moved here because before, when above the ceiling and the floor does not have the sky flat, it doesn't draw the sky - if (gl_frontsector->ceilingpic == skyflatnum || gl_frontsector->floorpic == skyflatnum) - gl_sky_found = true; - - if (gl_frontsector->ffloors) { /// \todo fix light, xoffs, yoffs, extracolormap ? diff --git a/src/hardware/hw_glob.h b/src/hardware/hw_glob.h index 099eb7e9e..af954d486 100644 --- a/src/hardware/hw_glob.h +++ b/src/hardware/hw_glob.h @@ -166,7 +166,6 @@ void HWR_ClearLightTables(void); // hw_bsp.c // -------- void HWR_RenderBSPNode(INT32 bspnum); -extern boolean gl_sky_found; // -------- // hw_draw.c diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 7d944027d..71738d997 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -878,7 +878,6 @@ static void HWR_RenderViewpoint(player_t *player, boolean drawSkyTexture, boolea } validcount++; - gl_sky_found = false; HWR_StartBatching(); @@ -900,7 +899,6 @@ static void HWR_RenderViewpoint(player_t *player, boolean drawSkyTexture, boolea //if (gl_printportals) // CONS_Printf("%d bsp calls\n", ps_numbspcalls); - if (gl_sky_found) { // HWR_DrawSkyBackground is not able to set the texture without // pausing batching first