mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
gl_model.c (Mod_LoadTexinfo): although the end result in memory
doesn't change, load the texinfo in a way consistent with the layout of the vecs in the mtexinfo_t struct. from a recent commit in tyr-quake git repo. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@786 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
15b4c0e901
commit
4b99d24706
1 changed files with 4 additions and 1 deletions
|
@ -841,8 +841,11 @@ void Mod_LoadTexinfo (lump_t *l)
|
|||
|
||||
for ( i=0 ; i<count ; i++, in++, out++)
|
||||
{
|
||||
for (j=0 ; j<8 ; j++)
|
||||
for (j=0 ; j<4 ; j++)
|
||||
{
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue