Let the render specific texture loader decide on sky texture loading.

This is necessary to allow the glsl texture loader to process the sky
textures.
This commit is contained in:
Bill Currie 2012-01-11 21:08:04 +09:00
parent f6f2e4f406
commit b43d03a98b
2 changed files with 3 additions and 3 deletions

View file

@ -60,6 +60,8 @@ Mod_ProcessTexture (texture_t *tx)
{
char name[32];
if (!strncmp (tx->name, "sky", 3))
return;
snprintf (name, sizeof (name), "fb_%s", tx->name);
tx->gl_fb_texturenum =
Mod_Fullbright ((byte *) (tx + 1), tx->width, tx->height, name);

View file

@ -204,9 +204,7 @@ Mod_LoadTextures (bsp_t *bsp)
if (!strncmp (mt->name, "sky", 3))
loadmodel->skytexture = tx;
else {
Mod_ProcessTexture (tx);
}
Mod_ProcessTexture (tx);
}
// sequence the animations