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); }); } //////////////////////////////////////////////////