mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-09 20:26:58 +08:00
Don't use UE4 allocators in editor mode
This commit is contained in:
parent
f89f3fad21
commit
a94d2f3c34
@ -53,9 +53,11 @@ static void * SpineRealloc( void* ptr, size_t size ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FSpinePlugin::StartupModule() {
|
void FSpinePlugin::StartupModule() {
|
||||||
|
#if !UE_EDITOR
|
||||||
_spSetMalloc( &SpineMalloc );
|
_spSetMalloc( &SpineMalloc );
|
||||||
_spSetRealloc( &SpineRealloc );
|
_spSetRealloc( &SpineRealloc );
|
||||||
_spSetFree( FMemory::Free );
|
_spSetFree( FMemory::Free );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void FSpinePlugin::ShutdownModule() { }
|
void FSpinePlugin::ShutdownModule() { }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user