From 3c9c66e72b86680848827d10d438766239ad82e7 Mon Sep 17 00:00:00 2001 From: Siltnamis Date: Sat, 23 Aug 2025 13:10:27 +0300 Subject: [PATCH] use RL_MALLOC in stb_truetype --- src/rtext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rtext.c b/src/rtext.c index 50ea6c883..78423c522 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -93,6 +93,9 @@ #pragma GCC diagnostic ignored "-Wunused-function" #endif + #define STBTT_malloc(x,u) ((void)(u),RL_MALLOC(x)) + #define STBTT_free(x,u) ((void)(u),RL_FREE(x)) + #define STBTT_STATIC #define STB_TRUETYPE_IMPLEMENTATION #include "external/stb_truetype.h" // Required for: ttf font data reading