qbsp: don't worry about preserving alignment of skip textures

And potentially save some texinfos.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-03-05 13:55:24 +10:30
parent b1144517b5
commit a37ee84d17
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ FindTexinfo(texinfo_t *texinfo)
if (texinfo->flags != target->flags)
continue;
/* Don't worry about texture alignment on skip surfaces */
if (texinfo->flags & TEX_SKIP)
return index;
for (j = 0; j < 4; j++) {
if (texinfo->vecs[0][j] != target->vecs[0][j])
break;