mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
make absolutely certain skin->fb_texture is 0 if there are no fb pixels in
the skin texture.
This commit is contained in:
parent
7d14013041
commit
61382f4967
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue