]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
move R_UpdateAllTextureInfo call back to DrawLight
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Dec 2007 11:05:56 +0000 (11:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Dec 2007 11:05:56 +0000 (11:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7831 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c
r_shadow.c

index 4afc3a07363060bc481539911a54baefae01bc4b..fafbf1d39e3d5415931a3fee893da1611faa4254 100644 (file)
@@ -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
index 4964cf58e648f620326e08072102385e655f524e..c4f98c9218ff4d449af48a3e0218f5d9a9f13bc8 100644 (file)
@@ -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);
 }