From df205a4fab3389f509c19aa7e2bee6f23732f28d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 29 Mar 2000 08:45:00 +0000 Subject: [PATCH] don't attempt to load skys unless skys are enabled --- common/gl_warp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/gl_warp.c b/common/gl_warp.c index 65aad42..dd3f21f 100644 --- a/common/gl_warp.c +++ b/common/gl_warp.c @@ -508,6 +508,9 @@ R_LoadSkys ( void ) { byte *skyimage = NULL; char name[64]; + if (!r_sky->value) + return; + for (i=0 ; i<6 ; i++) { GL_Bind (SKY_TEX + i); snprintf(name, sizeof(name), "env/%s%s.tga",