From b65c96ad995a0a542c52875b8f08ae63b34be089 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 14 Jun 2002 19:25:32 +0000 Subject: [PATCH] don't call draw_z_sky_polys for modes that don't need it --- libs/video/renderer/gl/gl_sky_clip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/gl/gl_sky_clip.c b/libs/video/renderer/gl/gl_sky_clip.c index 77cdc31eb..4703c82da 100644 --- a/libs/video/renderer/gl/gl_sky_clip.c +++ b/libs/video/renderer/gl/gl_sky_clip.c @@ -811,13 +811,16 @@ R_DrawSkyChain (const msurface_t *sky_chain) if (gl_sky_clip->int_val) { draw_skybox_sky_polys (sky_chain); } + draw_z_sky_polys (sky_chain); } else if (gl_sky_clip->int_val == 2) { draw_id_sky_polys (sky_chain); } else if (gl_sky_clip->int_val) { + // XXX not properly implemented draw_skydome_sky_polys (sky_chain); - return; // XXX not properly implemented + //draw_z_sky_polys (sky_chain); + } else { + draw_z_sky_polys (sky_chain); } - draw_z_sky_polys (sky_chain); if (gl_sky_debug->int_val) { const msurface_t *sc;