Decentralize the assert for AllocateAlignedMemory failures

This commit is contained in:
Henrik Rydgård committed 2024-10-22 21:49:50 +02:00
1 parent 85410305e6
commit f54d701a2e
10 files changed
+25 -23

No files matched your search

-3
View File
@@ -258,9 +258,6 @@ void *AllocateAlignedMemory(size_t size, size_t alignment) {
}
#endif
#endif
char temp[32];
NiceSizeFormat(size, temp, sizeof(temp));
_assert_msg_(ptr != nullptr, "Failed to allocate aligned memory of size %s (%llu)", temp, (unsigned long long)size);
return ptr;
}