瀏覽代碼

Merge pull request #5139 from Siltnamis/stbtt_rl_malloc

use RL_MALLOC in stb_truetype
Ray 3 周之前
父節點
當前提交
9cc9f3bbbe
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/rtext.c

+ 3 - 0
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