From: havoc Date: Fri, 9 Feb 2007 01:19:05 +0000 (+0000) Subject: fix Q3BSP map loader's sky surface detection so that it doesn't assume all submodels... X-Git-Tag: xonotic-v0.1.0preview~3604 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=407e6d40f0401302e462d39299229a9f3e76feb1;p=xonotic%2Fdarkplaces.git fix Q3BSP map loader's sky surface detection so that it doesn't assume all submodels have sky if the base model does, this improves rendering performance a bit (by not scanning for sky in submodels that claim to have it but don't) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6810 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 5339df4c..a35aefc2 100644 --- a/model_brush.c +++ b/model_brush.c @@ -5887,6 +5887,8 @@ void Mod_Q3BSP_Load(model_t *mod, void *buffer, void *bufferend) break; if (j < mod->nummodelsurfaces) mod->DrawSky = R_Q1BSP_DrawSky; + else + mod->DrawSky = NULL; } }