summaryrefslogtreecommitdiff
path: root/src/refresh/sw/polyset.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-03-16 19:19:00 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-03-20 22:04:53 +0400
commit579a26b4dfb7172bc29d9b853f335af310eb114c (patch)
treee839b21a3a3b1f7a1b0ad99e73c77d4c16b95d7e /src/refresh/sw/polyset.c
parentf53832714d549a908a83b3528ea385197306b522 (diff)
Clean up and sanitize alias model drawing.
Validate texture coordinates. Validate vertex normal indices. Check that skin upload width/height matches model. Draw alias models in solid white color when skin is missing or found to be invalid.
Diffstat (limited to 'src/refresh/sw/polyset.c')
-rw-r--r--src/refresh/sw/polyset.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/refresh/sw/polyset.c b/src/refresh/sw/polyset.c
index 1efdb8c..e1f2716 100644
--- a/src/refresh/sw/polyset.c
+++ b/src/refresh/sw/polyset.c
@@ -95,10 +95,6 @@ static const adivtab_t adivtab[32 * 32] = {
#include "adivtab.h"
};
-static byte *skintable[MAX_LBM_HEIGHT];
-static int skinwidth;
-static byte *skinstart;
-
void (*d_pdrawspans)(spanpackage_t *pspanpackage);
void R_PolysetDrawSpansConstant8_Blended(spanpackage_t *pspanpackage);
@@ -108,26 +104,6 @@ void R_PolysetDrawSpans8_Opaque(spanpackage_t *pspanpackage);
static void R_PolysetSetEdgeTable(void);
static void R_RasterizeAliasPolySmooth(void);
-/*
-================
-R_PolysetUpdateTables
-================
-*/
-void R_PolysetUpdateTables(void)
-{
- int i;
- byte *s;
-
- if (r_affinetridesc.skinwidth != skinwidth ||
- r_affinetridesc.pskin != skinstart) {
- skinwidth = r_affinetridesc.skinwidth;
- skinstart = r_affinetridesc.pskin;
- s = skinstart;
- for (i = 0; i < MAX_LBM_HEIGHT; i++, s += skinwidth)
- skintable[i] = s;
- }
-}
-
/*
================