mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 13:41:33 +01:00
ref: clear draw entities when clearing edicts
This commit is contained in:
parent
0a22040c6e
commit
34da3e0ccd
@ -377,6 +377,13 @@ void Mod_UnloadTextures( model_t *mod )
|
|||||||
|
|
||||||
void R_ProcessEntData( qboolean allocate )
|
void R_ProcessEntData( qboolean allocate )
|
||||||
{
|
{
|
||||||
|
if( !allocate )
|
||||||
|
{
|
||||||
|
tr.draw_list->num_solid_entities = 0;
|
||||||
|
tr.draw_list->num_trans_entities = 0;
|
||||||
|
tr.draw_list->num_beam_entities = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if( gEngfuncs.drawFuncs->R_ProcessEntData )
|
if( gEngfuncs.drawFuncs->R_ProcessEntData )
|
||||||
gEngfuncs.drawFuncs->R_ProcessEntData( allocate );
|
gEngfuncs.drawFuncs->R_ProcessEntData( allocate );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user