From: divverent Date: Sun, 7 Feb 2010 20:13:08 +0000 (+0000) Subject: fix r_showsurfaces 3 again X-Git-Tag: xonotic-v0.1.0preview~230^2~525 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16aa505c55e4f8c8f4bc085055657117a0c5632d;p=xonotic%2Fdarkplaces.git fix r_showsurfaces 3 again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9944 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index d8c67879..aa551f30 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -11073,7 +11073,7 @@ static void R_DrawWorldTextureSurfaceList(int texturenumsurfaces, const msurface { CHECKGLERROR RSurf_SetupDepthAndCulling(); - if (r_showsurfaces.integer == 3 && !prepass && (rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY)) + if (r_showsurfaces.integer == 3 && !prepass && !(rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY)) { R_DrawTextureSurfaceList_ShowSurfaces3(texturenumsurfaces, texturesurfacelist, writedepth); return; @@ -11098,7 +11098,7 @@ static void R_DrawModelTextureSurfaceList(int texturenumsurfaces, const msurface { CHECKGLERROR RSurf_SetupDepthAndCulling(); - if (r_showsurfaces.integer == 3 && !prepass && (rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY)) + if (r_showsurfaces.integer == 3 && !prepass && !(rsurface.texture->currentmaterialflags & MATERIALFLAG_SKY)) { R_DrawTextureSurfaceList_ShowSurfaces3(texturenumsurfaces, texturesurfacelist, writedepth); return;