mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-22 01:11:42 +00:00
[vulkan] Bail if all lights have been culled
When all lights have been culled, the updates wind up being 0 bytes and vulkan validation doesn't particularly like that.
This commit is contained in:
parent
dd4f51049d
commit
69af6a6234
1 changed files with 4 additions and 0 deletions
|
@ -1059,6 +1059,10 @@ lighting_rewrite_ids (lightingframe_t *lframe, vulkan_ctx_t *ctx)
|
|||
packet_size += sizeof (float[light_count]);
|
||||
packet_size += sizeof (uint32_t[matrix_id_count]);
|
||||
|
||||
if (!packet_size) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto bb = &bufferBarriers[qfv_BB_TransferWrite_to_UniformRead];
|
||||
auto packet = QFV_PacketAcquire (ctx->staging);
|
||||
byte *packet_start = QFV_PacketExtend (packet, packet_size);
|
||||
|
|
Loading…
Reference in a new issue