mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-29 12:15:30 +00:00
Updated meshoptimizer.
This commit is contained in:
committed by
Branimir Karadžić
parent
c32236ecb3
commit
f3ffcc648a
+4
@@ -1,6 +1,8 @@
|
||||
// This file is part of meshoptimizer library; see meshoptimizer.h for version/license details
|
||||
#include "meshoptimizer.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef MESHOPTIMIZER_ALLOC_EXPORT
|
||||
meshopt_Allocator::Storage& meshopt_Allocator::storage()
|
||||
{
|
||||
@@ -11,6 +13,8 @@ meshopt_Allocator::Storage& meshopt_Allocator::storage()
|
||||
|
||||
void meshopt_setAllocator(void* (MESHOPTIMIZER_ALLOC_CALLCONV* allocate)(size_t), void (MESHOPTIMIZER_ALLOC_CALLCONV* deallocate)(void*))
|
||||
{
|
||||
assert(allocate && deallocate);
|
||||
|
||||
meshopt_Allocator::Storage& s = meshopt_Allocator::storage();
|
||||
s.allocate = allocate;
|
||||
s.deallocate = deallocate;
|
||||
|
||||
Reference in New Issue
Block a user