[gl] Call gl_R_CalcLightmaps after sub-model brushes have been queued

This fixes the sub-models not being dynamically lit.
This commit is contained in:
Bill Currie 2022-05-10 17:04:57 +09:00
parent 600e7ecbea
commit 8ce463cbed

View file

@ -734,8 +734,6 @@ gl_R_DrawWorld (void)
R_VisitWorldNodes (&bctx);
gl_R_CalcLightmaps ();
gl_R_DrawSkyChain (sky_chain);
if (r_drawentities) {
@ -745,6 +743,8 @@ gl_R_DrawWorld (void)
}
}
gl_R_CalcLightmaps ();
if (!Fog_GetDensity ()
|| (gl_fb_bmodels && gl_mtex_fullbright)
|| gl_mtex_active_tmus > 1) {