update headers to Filament v1.25.0
This commit is contained in:
@@ -30,15 +30,13 @@
|
||||
namespace utils {
|
||||
|
||||
inline void* aligned_alloc(size_t size, size_t align) noexcept {
|
||||
// 'align' must be a power of two and a multiple of sizeof(void*)
|
||||
align = (align < sizeof(void*)) ? sizeof(void*) : align;
|
||||
assert(align && !(align & align - 1));
|
||||
assert((align % sizeof(void*)) == 0);
|
||||
|
||||
void* p = nullptr;
|
||||
|
||||
// must be a power of two and >= sizeof(void*)
|
||||
while (align < sizeof(void*)) {
|
||||
align <<= 1u;
|
||||
}
|
||||
|
||||
#if defined(WIN32)
|
||||
p = ::_aligned_malloc(size, align);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user