summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorjussi2025-05-24 23:56:42 +0300
committerjussi2025-05-24 23:56:42 +0300
commite26bb8603c5a4053f2790fc7d6ce02b3179f5289 (patch)
tree5d6bcc991663b0b60fc5a38179104954892b1286 /src/text.c
parent913b8f882031893f926b6aba89ec4456cb39a2c0 (diff)
downloadreilua-enhanced-e26bb8603c5a4053f2790fc7d6ce02b3179f5289.tar.gz
reilua-enhanced-e26bb8603c5a4053f2790fc7d6ce02b3179f5289.tar.bz2
reilua-enhanced-e26bb8603c5a4053f2790fc7d6ce02b3179f5289.zip
RL.load and RL.unload functions for memory leak debugging. SoundAlias garbage collection.
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/text.c b/src/text.c
index 22af36d..e2315c7 100644
--- a/src/text.c
+++ b/src/text.c
@@ -438,8 +438,7 @@ Unload font from GPU memory (VRAM)
int ltextUnloadFont( lua_State* L ) {
Font* font = uluaGetFont( L, 1 );
- UnloadFont( *font );
- memset( font, 0, sizeof( Font ) );
+ uluaUnloadFont( font );
return 0;
}
@@ -905,7 +904,7 @@ Unload glyphInfo image from CPU memory (RAM)
int ltextUnloadGlyphInfo( lua_State* L ) {
GlyphInfo* glyph = uluaGetGlyphInfo( L, 1 );
- unloadGlyphInfo( glyph );
+ uluaUnloadGlyphInfo( glyph );
return 0;
}