Browse Source

ref: clear draw entities when clearing edicts

pull/2/head
mittorn 5 years ago
parent
commit
34da3e0ccd
  1. 7
      ref_gl/gl_context.c

7
ref_gl/gl_context.c

@ -377,6 +377,13 @@ void Mod_UnloadTextures( model_t *mod ) @@ -377,6 +377,13 @@ void Mod_UnloadTextures( model_t *mod )
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 )
gEngfuncs.drawFuncs->R_ProcessEntData( allocate );
}

Loading…
Cancel
Save