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:
authorSergey Sharybin <sergey@blender.org>2022-11-03 16:32:27 +0300
committerSergey Sharybin <sergey@blender.org>2022-11-03 16:32:27 +0300
commit90805c9943b3352c68a2b0e5121741751a2cf027 (patch)
treebe88e9307f198345a3f50d3c1db66e289d18c359
parenta16dd407b3d3f830c40646fcda5ea5b89b3ad4ee (diff)
parent09b9e1e95ee4a5cea5297d06af26385b73856aeb (diff)
Merge branch 'blender-v3.4-release'
-rw-r--r--intern/guardedalloc/MEM_guardedalloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index fdd77fb9eef..5ae33343949 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -271,7 +271,7 @@ void MEM_use_guarded_allocator(void);
template<typename T, typename... Args>
inline T *MEM_new(const char *allocation_name, Args &&...args)
{
- void *buffer = MEM_mallocN(sizeof(T), allocation_name);
+ void *buffer = MEM_mallocN_aligned(sizeof(T), alignof(T), allocation_name);
return new (buffer) T(std::forward<Args>(args)...);
}