aboutsummaryrefslogtreecommitdiffstats
path: root/WinQuake/d_polyse.c
diff options
context:
space:
mode:
Diffstat (limited to 'WinQuake/d_polyse.c')
-rw-r--r--WinQuake/d_polyse.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/WinQuake/d_polyse.c b/WinQuake/d_polyse.c
index ed2b6b6..cac6dc0 100644
--- a/WinQuake/d_polyse.c
+++ b/WinQuake/d_polyse.c
@@ -168,6 +168,15 @@ void D_PolysetDrawFinalVerts (finalvert_t *fv, int numverts)
*zbuf = z;
pix = skintable[fv->v[3]>>16][fv->v[2]>>16];
pix = ((byte *)acolormap)[pix + (fv->v[4] & 0xFF00) ];
+#ifdef RENDER_PUM
+ if (PUM_Active ())
+ {
+ byte pumtex = (byte)pix;
+ PUM_LightMaskAndTexel (&pumtex, (const byte *)&pix,
+ (const byte *)&fv->v[4], sizeof (pix));
+ pix = pumtex;
+ }
+#endif
d_viewbuffer[d_scantable[fv->v[1]] + fv->v[0]] = pix;
}
}