From: divverent Date: Sun, 10 Apr 2011 05:21:59 +0000 (+0000) Subject: r_showsurfaces 3: render sky (appears as average-colored box sides) X-Git-Tag: xonotic-v0.5.0~286 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7f40b1e3a88f44f1987d3fea5e7054a0b3951d2a;p=xonotic%2Fdarkplaces.git r_showsurfaces 3: render sky (appears as average-colored box sides) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11043 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=c9db9a48056251911aa3581ea642f3ffcf0c1b0f --- diff --git a/gl_rmain.c b/gl_rmain.c index cfe282d6..0d331be3 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -10086,7 +10086,7 @@ static void R_ProcessWorldTextureSurfaceList(int texturenumsurfaces, const msurf else R_DrawWorldTextureSurfaceList(texturenumsurfaces, texturesurfacelist, writedepth, prepass); } - else if ((rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY) && !r_showsurfaces.integer) + else if ((rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY) && (!r_showsurfaces.integer || r_showsurfaces.integer == 3)) R_DrawTextureSurfaceList_Sky(texturenumsurfaces, texturesurfacelist); else if (!rsurface.texture->currentnumlayers) return; @@ -10164,7 +10164,7 @@ static void R_ProcessModelTextureSurfaceList(int texturenumsurfaces, const msurf else R_DrawModelTextureSurfaceList(texturenumsurfaces, texturesurfacelist, writedepth, prepass); } - else if ((rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY) && !r_showsurfaces.integer) + else if ((rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY) && (!r_showsurfaces.integer || r_showsurfaces.integer == 3)) R_DrawTextureSurfaceList_Sky(texturenumsurfaces, texturesurfacelist); else if (!rsurface.texture->currentnumlayers) return;