quakeforge/libs/scene
Bill Currie 06f410b0b6 [renderer] Clear the visibility components on scene reset
I don't know why it didn't happen during the demo loop, but going from
the start map to e1m1 caused a segfault due to the efrags for a lava
ball getting double freed (however, I do think it might be because the
ball passed through at least two leafs, while entities in the demos did
not). The double free was because SCR_NewScene (indirectly) freed all
the efrags without removing them from entities, and then the client code
deleting the entities caused the visibility components to get deleted
and thus the efrags freed a second time. Using ECS_RemoveEntities on the
visibility component ensures the entities don't have a visibility
component to remove when they are later deleted.
2022-11-17 22:12:41 +09:00
..
test [ecs] Add hierarchy-only tests 2022-11-05 21:29:38 +09:00
Makemodule.am [scene] Move efrag code from renderer to scene 2022-11-14 12:43:33 +09:00
camera.c [ecs] Move ECS core into its own library 2022-10-26 17:24:03 +09:00
efrag.c [renderer] Clear the visibility components on scene reset 2022-11-17 22:12:41 +09:00
entity.c [renderer] Support multiple entity queues 2022-03-05 02:05:39 +09:00
light.c [model] Move plane info into mnode_t, and visframe out 2022-05-22 12:41:23 +09:00
scene.c [scene] Add a color map component 2022-11-15 15:30:35 +09:00
transform.c [ecs] Move parent setting logic into hierarchy 2022-11-05 17:54:49 +09:00