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:
authorHans Goudey <h.goudey@me.com>2022-04-22 19:48:38 +0300
committerHans Goudey <h.goudey@me.com>2022-04-22 19:48:53 +0300
commit7f726b48ace40a90b707bc5c68bf7e3f5477f21b (patch)
treea6ab15752b798c267c452ed1dfd9ab8a87f46a50 /source/blender/draw/intern/draw_cache_impl_curves.cc
parent58be9708bfa069df2db7415a64ec76c3fc012868 (diff)
Cleanup: Remove unused variables, adjust comments
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_curves.cc')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_curves.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curves.cc b/source/blender/draw/intern/draw_cache_impl_curves.cc
index f2e747cb276..f2742f3bcc7 100644
--- a/source/blender/draw/intern/draw_cache_impl_curves.cc
+++ b/source/blender/draw/intern/draw_cache_impl_curves.cc
@@ -92,11 +92,6 @@ static void curves_batch_cache_clear_data(CurvesEvalCache &curves_cache)
GPU_BATCH_DISCARD_SAFE(curves_cache.final[i].proc_hairs[j]);
}
}
-
- /* "Normal" legacy hairs */
- GPU_BATCH_DISCARD_SAFE(curves_cache.hairs);
- GPU_VERTBUF_DISCARD_SAFE(curves_cache.pos);
- GPU_INDEXBUF_DISCARD_SAFE(curves_cache.indices);
}
static void curves_batch_cache_clear(Curves &curves)
@@ -148,8 +143,7 @@ void DRW_curves_batch_cache_free(Curves *curves)
static void ensure_seg_pt_count(const Curves &curves, CurvesEvalCache &curves_cache)
{
- if ((curves_cache.pos != nullptr && curves_cache.indices != nullptr) ||
- (curves_cache.proc_point_buf != nullptr)) {
+ if (curves_cache.proc_point_buf != nullptr) {
return;
}