Browse Source

use RL_MALLOC in stb_truetype

pull/5139/head
Siltnamis 3 months ago
parent
commit
3c9c66e72b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/rtext.c

+ 3
- 0
src/rtext.c View File

@ -93,6 +93,9 @@
#pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#endif #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 STBTT_STATIC
#define STB_TRUETYPE_IMPLEMENTATION #define STB_TRUETYPE_IMPLEMENTATION
#include "external/stb_truetype.h" // Required for: ttf font data reading #include "external/stb_truetype.h" // Required for: ttf font data reading

Loading…
Cancel
Save