diff --git a/libs/video/renderer/gl/gl_sky_clip.c b/libs/video/renderer/gl/gl_sky_clip.c index e99f0f390..37154014d 100644 --- a/libs/video/renderer/gl/gl_sky_clip.c +++ b/libs/video/renderer/gl/gl_sky_clip.c @@ -703,7 +703,7 @@ draw_black_sky_polys (const instsurf_t *sky_chain) p = p->next; } if (sc->transform) - qfglPushMatrix (); + qfglPopMatrix (); sc = sc->tex_chain; } qfglEnable (GL_TEXTURE_2D); @@ -845,6 +845,8 @@ R_DrawSkyChain (const instsurf_t *sky_chain) qfglEnd (); p = p->next; } + if (sc->transform) + qfglPopMatrix (); sc = sc->tex_chain; } }