mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
Remove pskindesc from affinetridesc_t.
It's never used after being set.
This commit is contained in:
parent
c1eb3e77c3
commit
d25f39cc7d
5 changed files with 8 additions and 14 deletions
|
@ -109,7 +109,6 @@ typedef struct finalvert_s {
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void *pskin;
|
void *pskin;
|
||||||
maliasskindesc_t *pskindesc;
|
|
||||||
int skinwidth;
|
int skinwidth;
|
||||||
int skinheight;
|
int skinheight;
|
||||||
mtriangle_t *ptriangles;
|
mtriangle_t *ptriangles;
|
||||||
|
|
|
@ -94,15 +94,14 @@
|
||||||
// affinetridesc_t structure
|
// affinetridesc_t structure
|
||||||
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
// !!! if this is changed, it must be changed in d_iface.h too !!!
|
||||||
#define atd_pskin 0
|
#define atd_pskin 0
|
||||||
#define atd_pskindesc 4
|
#define atd_skinwidth 4
|
||||||
#define atd_skinwidth 8
|
#define atd_skinheight 8
|
||||||
#define atd_skinheight 12
|
#define atd_ptriangles 12
|
||||||
#define atd_ptriangles 16
|
#define atd_pfinalverts 16
|
||||||
#define atd_pfinalverts 20
|
#define atd_numtriangles 20
|
||||||
#define atd_numtriangles 24
|
#define atd_drawtype 24
|
||||||
#define atd_drawtype 28
|
#define atd_seamfixupX16 28
|
||||||
#define atd_seamfixupX16 32
|
#define atd_size 32
|
||||||
#define atd_size 36
|
|
||||||
|
|
||||||
#endif // _D_IFACE_H
|
#endif // _D_IFACE_H
|
||||||
|
|
||||||
|
|
|
@ -553,7 +553,6 @@ R_AliasSetupSkin (void)
|
||||||
|
|
||||||
a_skinwidth = pmdl->skinwidth;
|
a_skinwidth = pmdl->skinwidth;
|
||||||
|
|
||||||
r_affinetridesc.pskindesc = pskindesc;
|
|
||||||
r_affinetridesc.pskin = (void *) ((byte *) paliashdr + pskindesc->skin);
|
r_affinetridesc.pskin = (void *) ((byte *) paliashdr + pskindesc->skin);
|
||||||
r_affinetridesc.skinwidth = a_skinwidth;
|
r_affinetridesc.skinwidth = a_skinwidth;
|
||||||
r_affinetridesc.seamfixupX16 = (a_skinwidth >> 1) << 16;
|
r_affinetridesc.seamfixupX16 = (a_skinwidth >> 1) << 16;
|
||||||
|
|
|
@ -106,9 +106,7 @@ static void
|
||||||
iqm_setup_skin (swiqm_t *sw, int skinnum)
|
iqm_setup_skin (swiqm_t *sw, int skinnum)
|
||||||
{
|
{
|
||||||
tex_t *skin = sw->skins[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.pskin = skin->data;
|
||||||
r_affinetridesc.skinwidth = skin->width;
|
r_affinetridesc.skinwidth = skin->width;
|
||||||
r_affinetridesc.skinheight = skin->height;
|
r_affinetridesc.skinheight = skin->height;
|
||||||
|
|
|
@ -553,7 +553,6 @@ R_AliasSetupSkin (void)
|
||||||
pskindesc = R_AliasGetSkindesc (skinnum, paliashdr);
|
pskindesc = R_AliasGetSkindesc (skinnum, paliashdr);
|
||||||
a_skinwidth = pmdl->skinwidth;
|
a_skinwidth = pmdl->skinwidth;
|
||||||
|
|
||||||
sw32_r_affinetridesc.pskindesc = pskindesc;
|
|
||||||
sw32_r_affinetridesc.pskin = (void *) ((byte *) paliashdr + pskindesc->skin);
|
sw32_r_affinetridesc.pskin = (void *) ((byte *) paliashdr + pskindesc->skin);
|
||||||
sw32_r_affinetridesc.skinwidth = a_skinwidth;
|
sw32_r_affinetridesc.skinwidth = a_skinwidth;
|
||||||
sw32_r_affinetridesc.seamfixupX16 = (a_skinwidth >> 1) << 16;
|
sw32_r_affinetridesc.seamfixupX16 = (a_skinwidth >> 1) << 16;
|
||||||
|
|
Loading…
Reference in a new issue