[renderer] Don't clear efrags in SCR_NewScene

The recent light changes highlighted that the renderer does not own the
efrags (segfault in qwaq when shutting down my test scene). After
digging through the history of efrag clearing, it turns out that the
renderer never owned them, I just didn't understand the concept of
scenes at the time that I moved efrags into the renderer.
This commit is contained in:
Bill Currie 2023-07-23 00:55:31 +09:00
parent 9e1810a2a9
commit 07d9749b53

View file

@ -491,10 +491,6 @@ SCR_Shutdown (void)
void
SCR_NewScene (scene_t *scene)
{
if (scr_scene) {
ECS_RemoveEntities (scr_scene->reg, scene_visibility);
R_ClearEfrags ();
}
scr_scene = scene;
if (scene) {
mod_brush_t *brush = &scr_scene->worldmodel->brush;