From: havoc Date: Fri, 21 Dec 2007 11:05:56 +0000 (+0000) Subject: move R_UpdateAllTextureInfo call back to DrawLight X-Git-Tag: xonotic-v0.1.0preview~2660 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=26fea34fd82b4f762be2247ec1fbf0b5a9cefb4e;p=xonotic%2Fdarkplaces.git move R_UpdateAllTextureInfo call back to DrawLight git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7831 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rsurf.c b/gl_rsurf.c index 4afc3a07..fafbf1d3 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1042,6 +1042,7 @@ void R_Q1BSP_DrawLight(entity_render_t *ent, int numsurfaces, const int *surface int batchelements[BATCHSIZE*3]; texture_t *tex; CHECKGLERROR + R_UpdateAllTextureInfo(ent); culltriangles = r_shadow_culltriangles.integer && !(ent->flags & RENDER_NOSELFSHADOW); element3i = rsurface.modelelement3i; // this is a double loop because non-visible surface skipping has to be diff --git a/r_shadow.c b/r_shadow.c index 4964cf58..c4f98c92 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2837,7 +2837,6 @@ void R_Shadow_DrawEntityLight(entity_render_t *ent) return; R_Shadow_SetupEntityLight(ent); - R_UpdateAllTextureInfo(ent); model->DrawLight(ent, model->nummodelsurfaces, model->surfacelist, NULL); }