mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
[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:
parent
9e1810a2a9
commit
07d9749b53
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue