make absolutely certain skin->fb_texture is 0 if there are no fb pixels in

the skin texture.
This commit is contained in:
Bill Currie 2001-11-21 08:26:21 +00:00
parent 7d14013041
commit 61382f4967

View file

@ -242,6 +242,7 @@ Skin_Process (skin_t *skin, tex_t *tex)
int pixels = tex->width * tex->height;
byte *ptexels = Hunk_TempAlloc (pixels);
skin->fb_texture = 0;
if (Mod_CalcFullbright (tex->data, ptexels, pixels)) {
skin->fb_texture = skin_fb_textures + (skin - skin_cache);
build_skin (skin->fb_texture, ptexels, tex->width, tex->height,