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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user