From 407e6d40f0401302e462d39299229a9f3e76feb1 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 9 Feb 2007 01:19:05 +0000 Subject: [PATCH] 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 --- model_brush.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.39.2