mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-25 21:31:18 +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;
|
byte *skyimage = NULL;
|
||||||
char name[64];
|
char name[64];
|
||||||
|
|
||||||
|
if (!r_sky->value)
|
||||||
|
return;
|
||||||
|
|
||||||
for (i=0 ; i<6 ; i++) {
|
for (i=0 ; i<6 ; i++) {
|
||||||
GL_Bind (SKY_TEX + i);
|
GL_Bind (SKY_TEX + i);
|
||||||
snprintf(name, sizeof(name), "env/%s%s.tga",
|
snprintf(name, sizeof(name), "env/%s%s.tga",
|
||||||
|
|
Loading…
Reference in a new issue