Remove pskindesc from affinetridesc_t.

It's never used after being set.
This commit is contained in:
Bill Currie 2012-05-19 09:28:02 +09:00
parent c1eb3e77c3
commit d25f39cc7d
5 changed files with 8 additions and 14 deletions

View file

@ -109,7 +109,6 @@ typedef struct finalvert_s {
typedef struct
{
void *pskin;
maliasskindesc_t *pskindesc;
int skinwidth;
int skinheight;
mtriangle_t *ptriangles;

View file

@ -94,15 +94,14 @@
// affinetridesc_t structure
// !!! if this is changed, it must be changed in d_iface.h too !!!
#define atd_pskin 0
#define atd_pskindesc 4
#define atd_skinwidth 8
#define atd_skinheight 12
#define atd_ptriangles 16
#define atd_pfinalverts 20
#define atd_numtriangles 24
#define atd_drawtype 28
#define atd_seamfixupX16 32
#define atd_size 36
#define atd_skinwidth 4
#define atd_skinheight 8
#define atd_ptriangles 12
#define atd_pfinalverts 16
#define atd_numtriangles 20
#define atd_drawtype 24
#define atd_seamfixupX16 28
#define atd_size 32
#endif // _D_IFACE_H

View file

@ -553,7 +553,6 @@ R_AliasSetupSkin (void)
a_skinwidth = pmdl->skinwidth;
r_affinetridesc.pskindesc = pskindesc;
r_affinetridesc.pskin = (void *) ((byte *) paliashdr + pskindesc->skin);
r_affinetridesc.skinwidth = a_skinwidth;
r_affinetridesc.seamfixupX16 = (a_skinwidth >> 1) << 16;

View file

@ -106,9 +106,7 @@ static void
iqm_setup_skin (swiqm_t *sw, int skinnum)
{
tex_t *skin = sw->skins[skinnum];
static maliasskindesc_t skindesc = {0, 0, 0, 0};
r_affinetridesc.pskindesc = &skindesc;
r_affinetridesc.pskin = skin->data;
r_affinetridesc.skinwidth = skin->width;
r_affinetridesc.skinheight = skin->height;

View file

@ -553,7 +553,6 @@ R_AliasSetupSkin (void)
pskindesc = R_AliasGetSkindesc (skinnum, paliashdr);
a_skinwidth = pmdl->skinwidth;
sw32_r_affinetridesc.pskindesc = pskindesc;
sw32_r_affinetridesc.pskin = (void *) ((byte *) paliashdr + pskindesc->skin);
sw32_r_affinetridesc.skinwidth = a_skinwidth;
sw32_r_affinetridesc.seamfixupX16 = (a_skinwidth >> 1) << 16;