Remove mtexinfo_t::mipadjust (software raster remnant)

This commit is contained in:
Axel Gneiting 2020-07-05 21:01:10 +03:00 committed by sezero
parent 7de916b975
commit 6e4f29a22f
2 changed files with 0 additions and 19 deletions

View file

@ -924,7 +924,6 @@ void Mod_LoadTexinfo (lump_t *l)
texinfo_t *in;
mtexinfo_t *out;
int i, j, count, miptex;
float len1, len2;
int missing = 0; //johnfitz
in = (texinfo_t *)(mod_base + l->fileofs);
@ -943,23 +942,6 @@ void Mod_LoadTexinfo (lump_t *l)
out->vecs[0][j] = LittleFloat (in->vecs[0][j]);
out->vecs[1][j] = LittleFloat (in->vecs[1][j]);
}
len1 = VectorLength (out->vecs[0]);
len2 = VectorLength (out->vecs[1]);
len1 = (len1 + len2)/2;
if (len1 < 0.32)
out->mipadjust = 4;
else if (len1 < 0.49)
out->mipadjust = 3;
else if (len1 < 0.99)
out->mipadjust = 2;
else
out->mipadjust = 1;
#if 0
if (len1 + len2 < 0.001)
out->mipadjust = 1; // don't crash
else
out->mipadjust = 1 / floor((len1+len2)/2 + 0.1);
#endif
miptex = LittleLong (in->miptex);
out->flags = LittleLong (in->flags);

View file

@ -123,7 +123,6 @@ typedef struct
typedef struct
{
float vecs[2][4];
float mipadjust;
texture_t *texture;
int flags;
} mtexinfo_t;