mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
Remove mtexinfo_t::mipadjust (software raster remnant)
This commit is contained in:
parent
7de916b975
commit
6e4f29a22f
2 changed files with 0 additions and 19 deletions
|
@ -924,7 +924,6 @@ void Mod_LoadTexinfo (lump_t *l)
|
||||||
texinfo_t *in;
|
texinfo_t *in;
|
||||||
mtexinfo_t *out;
|
mtexinfo_t *out;
|
||||||
int i, j, count, miptex;
|
int i, j, count, miptex;
|
||||||
float len1, len2;
|
|
||||||
int missing = 0; //johnfitz
|
int missing = 0; //johnfitz
|
||||||
|
|
||||||
in = (texinfo_t *)(mod_base + l->fileofs);
|
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[0][j] = LittleFloat (in->vecs[0][j]);
|
||||||
out->vecs[1][j] = LittleFloat (in->vecs[1][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);
|
miptex = LittleLong (in->miptex);
|
||||||
out->flags = LittleLong (in->flags);
|
out->flags = LittleLong (in->flags);
|
||||||
|
|
|
@ -123,7 +123,6 @@ typedef struct
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
float vecs[2][4];
|
float vecs[2][4];
|
||||||
float mipadjust;
|
|
||||||
texture_t *texture;
|
texture_t *texture;
|
||||||
int flags;
|
int flags;
|
||||||
} mtexinfo_t;
|
} mtexinfo_t;
|
||||||
|
|
Loading…
Reference in a new issue