mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 22:51:37 +00:00
don't attempt to load skys unless skys are enabled
This commit is contained in:
parent
2cdef89e82
commit
df205a4fab
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue