mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
[vulkan] Clear lights when the scene is cleared
Fixes a segfault when shutting down my test program.
This commit is contained in:
parent
8795b8eb91
commit
8204e8a8c1
2 changed files with 2 additions and 1 deletions
|
@ -111,6 +111,7 @@ vulkan_R_ClearState (void)
|
|||
R_ClearEfrags ();
|
||||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
Vulkan_LoadLights (0, vulkan_ctx);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -697,5 +697,5 @@ Vulkan_LoadLights (scene_t *scene, vulkan_ctx_t *ctx)
|
|||
lightingctx_t *lctx = ctx->lighting_context;
|
||||
|
||||
lctx->scene = scene;
|
||||
lctx->ldata = scene->lights;
|
||||
lctx->ldata = scene ? scene->lights : 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue