From 610d9c0993275b5f78dddb185fbc165386723b73 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 22 Oct 2024 13:25:37 +0300 Subject: [PATCH] lua: proper naming of function to get textures --- Quake/gl_texmgr.c | 2 +- Quake/ls_main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Quake/gl_texmgr.c b/Quake/gl_texmgr.c index a6ba081b..aff6c9ea 100644 --- a/Quake/gl_texmgr.c +++ b/Quake/gl_texmgr.c @@ -1553,7 +1553,7 @@ void GL_ClearBindings(void) #ifdef USE_LUA_SCRIPTING -const gltexture_t* TexMgr_GetTextures(void) +const gltexture_t* LS_GetTextures(void) { return active_gltextures; } diff --git a/Quake/ls_main.cpp b/Quake/ls_main.cpp index 2578bd15..daaf9109 100644 --- a/Quake/ls_main.cpp +++ b/Quake/ls_main.cpp @@ -28,7 +28,7 @@ extern "C" { #include "quakedef.h" -const gltexture_t* TexMgr_GetTextures(); +const gltexture_t* LS_GetTextures(); } #ifdef USE_TLSF @@ -692,7 +692,7 @@ static int LS_global_text_toascii(lua_State* state) // Pushes sequence of tables with information about loaded textures static int LS_global_textures_list(lua_State* state) { - const gltexture_t* texture = TexMgr_GetTextures(); + const gltexture_t* texture = LS_GetTextures(); if (!texture) return 0;