fontstash: define and use FONTSTASH_MALLOC_ATOMIC for the allocated texture and atlas nodes (which do not contain pointers)

This commit is contained in:
Delyan Angelov 2025-09-07 14:05:40 +03:00
parent 6e0fd17a72
commit e89839c845
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 8 additions and 4 deletions

View file

@ -8,6 +8,7 @@ $if gcboehm ? {
#define FONTSTASH_MALLOC GC_MALLOC
#define FONTSTASH_REALLOC GC_REALLOC
#define FONTSTASH_FREE GC_FREE
#define FONTSTASH_MALLOC_ATOMIC GC_MALLOC_ATOMIC
}
#include "fontstash.h"
#flag darwin -I/usr/local/Cellar/freetype/2.10.2/include/freetype2