From 649f7f027fdea0867361fb5741ee4f3643c73dc9 Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Thu, 13 Jun 2024 18:30:30 -0500 Subject: [PATCH] Fixes deleter passed to the std::shared_ptr (#1009) Signed-off-by: Michael Carroll --- src/ShaderParam.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShaderParam.cc b/src/ShaderParam.cc index 4e07e274b..e28616751 100644 --- a/src/ShaderParam.cc +++ b/src/ShaderParam.cc @@ -117,7 +117,7 @@ void ShaderParam::InitializeBuffer(uint32_t _count) { this->dataPtr->count = _count; this->dataPtr->buffer.reset(new float[_count], - std::default_delete()); + [](void *ptr) { delete [] static_cast(ptr); }); } //////////////////////////////////////////////////