From 0ac7b51dee12e5b3657a2ff0b35c1490fbf8cc6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 26 Sep 2019 15:45:00 +0200 Subject: [PATCH] Fix T70107 EEVEE: Crash using Irradiance Volume with Curve inside This was more of a general nvidia driver bug. Was caused by a drawcall that had 0 vertex count. This worked in normal drawcalls but not in indirect drawcalls. --- source/blender/gpu/intern/gpu_batch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/gpu/intern/gpu_batch.c b/source/blender/gpu/intern/gpu_batch.c index 1c05e28bdb0..2620ba49799 100644 --- a/source/blender/gpu/intern/gpu_batch.c +++ b/source/blender/gpu/intern/gpu_batch.c @@ -807,6 +807,10 @@ void GPU_draw_list_command_add( { BLI_assert(list->commands); + if (v_count == 0 || i_count == 0) { + return; + } + if (list->base_index != UINT_MAX) { GPUDrawCommandIndexed *cmd = list->commands_indexed + list->cmd_len; cmd->v_first = v_first;