[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
|
@ -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 New Issue