Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-09-26 16:45:00 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-09-26 16:48:29 +0300
commit0ac7b51dee12e5b3657a2ff0b35c1490fbf8cc6b (patch)
treed0aa8ba76eeddf9159c8100c89f1e2da8eebd364 /source/blender/gpu/intern/gpu_batch.c
parentc525d0e3aee11bcb8f141aaec026c47a643c893c (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/intern/gpu_batch.c')
-rw-r--r--source/blender/gpu/intern/gpu_batch.c4
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;