]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
go back to using MATERIALFLAGMASK_DEPTHSORTED for transparent sorting
[xonotic/darkplaces.git] / gl_rsurf.c
index 3dad14f3aefc2cc9e29bc85d6917f6255c87b202..17de2ac8aebc61cbc839c86a54271d6dff60cd27 100644 (file)
@@ -1077,7 +1077,7 @@ void R_Q1BSP_DrawLight(entity_render_t *ent, int numsurfaces, const int *surface
                        // now figure out what to do with this particular range of surfaces
                        if (rsurface.texture->currentmaterialflags & (MATERIALFLAG_WALL | MATERIALFLAG_WATER))
                        {
-                               if (rsurface.texture->currentmaterialflags & MATERIALFLAG_SORTTRANSPARENT)
+                               if (rsurface.texture->currentmaterialflags & MATERIALFLAGMASK_DEPTHSORTED)
                                {
                                        vec3_t tempcenter, center;
                                        for (l = k;l < kend;l++)