[Bf-blender-cvs] [d10205c1a7d] master: GPUBuffers: Fix wrong assert

Clément Foucault noreply at git.blender.org
Tue Apr 23 20:35:30 CEST 2019


Commit: d10205c1a7d6d595db600842c9c2ed343d9f51aa
Author: Clément Foucault
Date:   Tue Apr 23 14:30:52 2019 +0200
Branches: master
https://developer.blender.org/rBd10205c1a7d6d595db600842c9c2ed343d9f51aa

GPUBuffers: Fix wrong assert

For good this time...

forgot to commit it in the previous commit rBedde48f57844.

===================================================================

M	source/blender/gpu/intern/gpu_buffers.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index ebe5fcf4496..a2f63882860 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -162,7 +162,6 @@ static void gpu_pbvh_batch_init(GPU_PBVH_Buffers *buffers, GPUPrimType prim)
   }
 
   if (buffers->lines == NULL) {
-    BLI_assert(buffers->index_lines_buf != NULL);
     buffers->lines = GPU_batch_create(GPU_PRIM_LINES,
                                       buffers->vert_buf,
                                       /* can be NULL if buffer is empty */



More information about the Bf-blender-cvs mailing list