Skip to content

Commit

Permalink
lua: proper naming of function to get textures
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Oct 22, 2024
1 parent 28c5e4f commit 610d9c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Quake/gl_texmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions Quake/ls_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C"
{
#include "quakedef.h"

const gltexture_t* TexMgr_GetTextures();
const gltexture_t* LS_GetTextures();
}

#ifdef USE_TLSF
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 610d9c0

Please sign in to comment.