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.
This commit is contained in:
parent
c525d0e3ae
commit
0ac7b51dee
Notes:
blender-bot
2023-02-14 06:05:22 +01:00
Referenced by issue #70107, Blender crashes using Irradiance Volume with Curve inside
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue