renders: fix BSPX lightmaps

Look to:
 * #16 R_RecursiveLightPoint returning total black color when
   DECOUPLED_LM lump is present
 * d740355147
This commit is contained in:
BraXi 2024-03-23 11:19:35 +02:00 committed by Denis Pauk
parent 51407d7139
commit 84f5fd2c97

View file

@ -111,7 +111,6 @@ R_RecursiveLightPoint(const msurface_t *surfaces, const mnode_t *node,
const msurface_t *surf;
int s, t, ds, dt;
int i;
mtexinfo_t *tex;
byte *lightmap;
int maps;
int r;
@ -162,10 +161,8 @@ R_RecursiveLightPoint(const msurface_t *surfaces, const mnode_t *node,
continue; /* no lightmaps */
}
tex = surf->texinfo;
s = DotProduct(mid, tex->vecs[0]) + tex->vecs[0][3];
t = DotProduct(mid, tex->vecs[1]) + tex->vecs[1][3];
s = DotProduct(mid, surf->lmvecs[0]) + surf->lmvecs[0][3];
t = DotProduct(mid, surf->lmvecs[1]) + surf->lmvecs[1][3];
if ((s < surf->texturemins[0]) ||
(t < surf->texturemins[1]))