]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.c
added EF_DOUBLESIDED (and internally RENDER_NOCULLFACE)
[xonotic/darkplaces.git] / r_shadow.c
index 1631a3adbee6c5cc523bd90a744210a0f702d14f..d3894d5b77cbe5c5e6da32bd91d7dd0fb447e489 100644 (file)
@@ -2528,7 +2528,7 @@ void R_Shadow_RenderSurfacesLighting(const entity_render_t *ent, const texture_t
        rtexture_t *basetexture;
        rtexture_t *glosstexture;
        float specularscale;
-       if (texture->textureflags & Q3TEXTUREFLAG_TWOSIDED)
+       if ((texture->textureflags & Q3TEXTUREFLAG_TWOSIDED) || (ent->flags & RENDER_NOCULLFACE))
                qglDisable(GL_CULL_FACE);
        else
                qglEnable(GL_CULL_FACE);