Enforce pointer alignment for InlinedAllocation
AssetReferences stored in inlined allocation needs to be aligned to pointer sized boundary due to atomic operations having strict requirements for such. Unaligned access seems to only crash on Windows on ARM systems when trying to allocate TextRender draw chunks.
This commit is contained in:
@@ -208,7 +208,7 @@ public:
|
||||
typedef typename FallbackAllocation::template Data<T> FallbackData;
|
||||
|
||||
bool _useFallback = false;
|
||||
byte _data[Capacity * sizeof(T)];
|
||||
alignas(sizeof(void*)) byte _data[Capacity * sizeof(T)];
|
||||
FallbackData _fallback;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user