Skip to content

Commit 9cc9f3b

Browse files
authored
Merge pull request #5139 from Siltnamis/stbtt_rl_malloc
use RL_MALLOC in stb_truetype
2 parents 11bf399 + 3c9c66e commit 9cc9f3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rtext.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
#pragma GCC diagnostic ignored "-Wunused-function"
9494
#endif
9595

96+
#define STBTT_malloc(x,u) ((void)(u),RL_MALLOC(x))
97+
#define STBTT_free(x,u) ((void)(u),RL_FREE(x))
98+
9699
#define STBTT_STATIC
97100
#define STB_TRUETYPE_IMPLEMENTATION
98101
#include "external/stb_truetype.h" // Required for: ttf font data reading

0 commit comments

Comments
 (0)