mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 15:41:59 +00:00
[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:
parent
2818fc12a5
commit
7b275ebab6
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,9 @@ Vulkan_Lighting_Draw (qfv_renderframe_t *rFrame)
|
||||||
if (!lctx->scene) {
|
if (!lctx->scene) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
update_lights (ctx);
|
if (lctx->scene->lights) {
|
||||||
|
update_lights (ctx);
|
||||||
|
}
|
||||||
|
|
||||||
__auto_type cframe = &ctx->frames.a[ctx->curFrame];
|
__auto_type cframe = &ctx->frames.a[ctx->curFrame];
|
||||||
lightingframe_t *lframe = &lctx->frames.a[ctx->curFrame];
|
lightingframe_t *lframe = &lctx->frames.a[ctx->curFrame];
|
||||||
|
|
Loading…
Reference in a new issue