From 2af88163d868dadcb9a30bc328dfb0611a3f16ce Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 19 Mar 2005 02:11:44 +0000 Subject: [PATCH] made detailtextures check r_detailtextures again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5096 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 b87ef716..5c40c4d5 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -524,7 +524,7 @@ static void R_DrawSurfaceList(const entity_render_t *ent, texture_t *texture, in dobase = true; dolightmap = !(texture->currentmaterialflags & MATERIALFLAG_FULLBRIGHT); doambient = r_ambient.value >= (1/64.0f); - dodetail = texture->skin.detail != NULL && !(texture->currentmaterialflags & MATERIALFLAG_TRANSPARENT); + dodetail = r_detailtextures.integer && texture->skin.detail != NULL && !(texture->currentmaterialflags & MATERIALFLAG_TRANSPARENT); doglow = texture->skin.glow != NULL; dofogpass = fogenabled && !(texture->currentmaterialflags & MATERIALFLAG_ADD); fogallpasses = fogenabled && !(texture->currentmaterialflags & MATERIALFLAG_TRANSPARENT); -- 2.39.2