]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix one more case of EF_NODEPTHTEST not being checked
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Apr 2007 12:39:53 +0000 (12:39 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Apr 2007 12:39:53 +0000 (12:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7064 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 91042d0a89c5dc51edb0ce612eac5411f3171567..ae64ff487f5216fa0842bd78cd2f6902d990478f 100644 (file)
@@ -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++)