summaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
authorjussi2023-10-28 14:15:20 +0300
committerjussi2023-10-28 14:15:20 +0300
commitaf03c7364ea0dfe2c8bb269eb8a8f9b580f39633 (patch)
tree8ef09eefe38c890112972768c6861432028d8945 /src/textures.c
parent23935aefca3212c989199cd7e195c02b01ef14ae (diff)
downloadreilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.tar.gz
reilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.tar.bz2
reilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.zip
New object type Font.
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index 28cb1cb..2121d12 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -924,7 +924,7 @@ Load texture from file into GPU memory ( VRAM )
- Success return Texture
*/
int ltexturesLoadTexture( lua_State *L ) {
- if ( FileExists( lua_tostring( L, 1 ) ) ) {
+ if ( FileExists( luaL_checkstring( L, 1 ) ) ) {
uluaPushTexture( L, LoadTexture( lua_tostring( L, 1 ) ) );
return 1;