diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-05 10:13:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-05 10:13:12 +0300 |
commit | 3c9c557580e86f592b861319e9c083be0d754ecf (patch) | |
tree | c5b765dc2c042dbd9c7e49c1e25d78c0361a16e0 /source/blender/draw | |
parent | c7fee64dea3a2ae99b0ca239d047678d3da39fab (diff) |
Fix assert in gpencil_batches_ensure
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_gpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c index 49b5e0fecd3..bea9ba1122b 100644 --- a/source/blender/draw/intern/draw_cache_impl_gpencil.c +++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c @@ -405,7 +405,7 @@ static void gpencil_batches_ensure(Object *ob, GpencilBatchCache *cache, int cfr if (cache->vbo == NULL) { /* Should be discarded together. */ BLI_assert(cache->vbo == NULL && cache->ibo == NULL); - BLI_assert(cache->stroke_batch == NULL && cache->stroke_batch == NULL); + BLI_assert(cache->fill_batch == NULL && cache->stroke_batch == NULL); /* TODO/PERF: Could be changed to only do it if needed. * For now it's simpler to assume we always need it * since multiple viewport could or could not need it. |