From a37ee84d175420c1b6f5fc5702c598a6a4fc7274 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Tue, 5 Mar 2013 13:55:24 +1030 Subject: [PATCH] qbsp: don't worry about preserving alignment of skip textures And potentially save some texinfos. Signed-off-by: Kevin Shanahan --- qbsp/map.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qbsp/map.c b/qbsp/map.c index 3adad7b6..bbc55e5b 100644 --- a/qbsp/map.c +++ b/qbsp/map.c @@ -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;