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:
Clément Foucault 2019-09-26 15:45:00 +02:00
parent c525d0e3ae
commit 0ac7b51dee

View File

@ -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;