soft: get rid unused R_PolysetUpdateTables

This commit is contained in:
Denis Pauk 2024-07-06 16:41:52 +03:00
parent bfeb842bd3
commit 79c71c7a68
3 changed files with 0 additions and 30 deletions

View file

@ -343,7 +343,6 @@ extern qboolean r_dowarp;
extern affinetridesc_t r_affinetridesc; extern affinetridesc_t r_affinetridesc;
void D_WarpScreen(void); void D_WarpScreen(void);
void R_PolysetUpdateTables(void);
//=======================================================================// //=======================================================================//

View file

@ -529,8 +529,6 @@ R_AliasSetupSkin(const entity_t *currententity, const model_t *currentmodel)
r_affinetridesc.skinwidth = pskindesc->width; r_affinetridesc.skinwidth = pskindesc->width;
r_affinetridesc.skinheight = pskindesc->height; r_affinetridesc.skinheight = pskindesc->height;
R_PolysetUpdateTables (); // FIXME: precalc edge lookups
return true; return true;
} }

View file

@ -77,10 +77,6 @@ static light3_t d_lightbasestep, d_lightextrastep;
static int d_sfracbasestep, d_tfracbasestep; static int d_sfracbasestep, d_tfracbasestep;
static zvalue_t d_ziextrastep, d_zibasestep; static zvalue_t d_ziextrastep, d_zibasestep;
static byte *skintable[MAX_LBM_HEIGHT];
int skinwidth;
static pixel_t *skinstart;
void (*d_pdrawspans)(const entity_t *currententity, spanpackage_t *pspanpackage); void (*d_pdrawspans)(const entity_t *currententity, spanpackage_t *pspanpackage);
static void R_PolysetSetEdgeTable(void); static void R_PolysetSetEdgeTable(void);
@ -131,29 +127,6 @@ static const byte irtable[256] = {
// ====================== // ======================
/*
================
R_PolysetUpdateTables
================
*/
void
R_PolysetUpdateTables (void)
{
byte *s;
if (r_affinetridesc.skinwidth != skinwidth ||
r_affinetridesc.pskin != skinstart)
{
int i;
skinwidth = r_affinetridesc.skinwidth;
skinstart = r_affinetridesc.pskin;
s = skinstart;
for (i=0 ; i<MAX_LBM_HEIGHT ; i++, s+=skinwidth)
skintable[i] = s;
}
}
/* /*
================ ================
R_DrawTriangle R_DrawTriangle