From 06f50c2559f428181cf86c143e5d3ca78cc70db0 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 6 Apr 2007 12:39:53 +0000 Subject: [PATCH] fix one more case of EF_NODEPTHTEST not being checked git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7064 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index 91042d0a..ae64ff48 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1020,7 +1020,7 @@ void R_Q1BSP_DrawLight(entity_render_t *ent, int numsurfaces, const int *surface rsurface_texture = tex->currentframe; if (rsurface_texture->currentmaterialflags & (MATERIALFLAG_WALL | MATERIALFLAG_WATER)) { - if (rsurface_texture->currentmaterialflags & MATERIALFLAG_BLENDED) + if (rsurface_texture->currentmaterialflags & MATERIALFLAGMASK_DEPTHSORTED) { vec3_t tempcenter, center; for (l = k;l < batchnumsurfaces && tex == batchsurfacelist[l]->texture;l++) -- 2.39.2