diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-09-26 16:45:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-09-26 16:48:29 +0300 |
commit | 0ac7b51dee12e5b3657a2ff0b35c1490fbf8cc6b (patch) | |
tree | d0aa8ba76eeddf9159c8100c89f1e2da8eebd364 /source/blender/gpu | |
parent | c525d0e3aee11bcb8f141aaec026c47a643c893c (diff) |
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.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_batch.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |