X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=gl_rmain.c;h=22c99ef12be07a8a675a41194422d1f1236cd926;hp=74cf0cbafc915d7bc364cbb1de2ed9c42f97e5e6;hb=c03ddda1e107e8483568d3d65c10df51ef556ee5;hpb=b058e111a7bd7ffe1067aa13edf2dd8b17f70a29 diff --git a/gl_rmain.c b/gl_rmain.c index 74cf0cba..22c99ef1 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6716,11 +6716,6 @@ void R_AnimCache_CacheVisibleEntities(void) for (i = 0;i < r_refdef.scene.numentities;i++) if (r_refdef.viewcache.entityvisible[i]) R_AnimCache_GetEntity(r_refdef.scene.entities[i], wantnormals, wanttangents); - - if (r_shadows.integer) - for (i = 0;i < r_refdef.scene.numentities;i++) - if (!r_refdef.viewcache.entityvisible[i]) - R_AnimCache_GetEntity(r_refdef.scene.entities[i], false, false); } //================================================================================== @@ -8357,6 +8352,8 @@ void R_RenderScene(void) R_TimeReport("animation"); R_Shadow_PrepareLights(); + if (r_shadows.integer > 0 && r_refdef.lightmapintensity > 0) + R_Shadow_PrepareModelShadows(); if (r_timereport_active) R_TimeReport("preparelights");