mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[vulkan] Drop lights with size 0
They can't contribute any light, so no point in keeping them. Fixes the erroneous size-0 shadow maps in the second nq demo.
This commit is contained in:
parent
08721f7a21
commit
0c0fce2f03
1 changed files with 4 additions and 1 deletions
|
@ -969,7 +969,10 @@ Vulkan_LoadLights (model_t *model, const char *entity_data, vulkan_ctx_t *ctx)
|
|||
qfv_light_t light = {};
|
||||
|
||||
parse_light (&light, entity, targets);
|
||||
DARRAY_APPEND (&lctx->lights, light);
|
||||
// some lights have 0 output, so drop them
|
||||
if (light.light) {
|
||||
DARRAY_APPEND (&lctx->lights, light);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (size_t i = 0; i < ctx->frames.size; i++) {
|
||||
|
|
Loading…
Reference in a new issue