[vulkan] Don't update lights that don't exist

However, the lighting pass still needs to be run in order to generate
the solid color image.
This commit is contained in:
Bill Currie 2022-05-05 21:24:22 +09:00
parent 2818fc12a5
commit 7b275ebab6

View file

@ -148,7 +148,9 @@ Vulkan_Lighting_Draw (qfv_renderframe_t *rFrame)
if (!lctx->scene) {
return;
}
if (lctx->scene->lights) {
update_lights (ctx);
}
__auto_type cframe = &ctx->frames.a[ctx->curFrame];
lightingframe_t *lframe = &lctx->frames.a[ctx->curFrame];