diff options
Diffstat (limited to 'source')
-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; |