From 26fea34fd82b4f762be2247ec1fbf0b5a9cefb4e Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 21 Dec 2007 11:05:56 +0000 Subject: [PATCH] move R_UpdateAllTextureInfo call back to DrawLight git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7831 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 1 + r_shadow.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2