mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
[renderer] Move call to R_ClearEfrags to SCR_NewScene
Probably more such should be moved, but efrags is on my mind. There's no need for the call to be spread through all the renderers.
This commit is contained in:
parent
06f410b0b6
commit
b1d7bad2e3
5 changed files with 1 additions and 4 deletions
|
@ -280,7 +280,6 @@ void
|
|||
gl_R_ClearState (void)
|
||||
{
|
||||
r_refdef.worldmodel = 0;
|
||||
R_ClearEfrags ();
|
||||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
}
|
||||
|
|
|
@ -219,7 +219,6 @@ void
|
|||
glsl_R_ClearState (void)
|
||||
{
|
||||
r_refdef.worldmodel = 0;
|
||||
R_ClearEfrags ();
|
||||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
}
|
||||
|
|
|
@ -472,6 +472,7 @@ SCR_NewScene (scene_t *scene)
|
|||
{
|
||||
if (scr_scene) {
|
||||
ECS_RemoveEntities (scr_scene->reg, scene_visibility);
|
||||
R_ClearEfrags ();
|
||||
}
|
||||
scr_scene = scene;
|
||||
if (scene) {
|
||||
|
|
|
@ -694,7 +694,6 @@ void
|
|||
R_ClearState (void)
|
||||
{
|
||||
r_refdef.worldmodel = 0;
|
||||
R_ClearEfrags ();
|
||||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
}
|
||||
|
|
|
@ -117,7 +117,6 @@ vulkan_R_ClearState (void)
|
|||
{
|
||||
QFV_DeviceWaitIdle (vulkan_ctx->device);
|
||||
r_refdef.worldmodel = 0;
|
||||
R_ClearEfrags ();
|
||||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
Vulkan_LoadLights (0, vulkan_ctx);
|
||||
|
|
Loading…
Reference in a new issue