From ab215f35b67ff76e747b96240167ead1e5b5b40d Mon Sep 17 00:00:00 2001 From: Ivan Avdeev Date: Sun, 6 Jun 2021 22:55:49 -0700 Subject: [PATCH] ref_vk: --//-- --- ref_vk/vk_light.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ref_vk/vk_light.c b/ref_vk/vk_light.c index 4661a139..510072ba 100644 --- a/ref_vk/vk_light.c +++ b/ref_vk/vk_light.c @@ -55,6 +55,7 @@ static void loadRadData( const model_t *map, const char *filename ) { const char *wad_name = NULL; char *texture_name = Q_strchr(name, '/'); string texname; + int tex_id; if (!texture_name) { texture_name = name; @@ -68,7 +69,7 @@ static void loadRadData( const model_t *map, const char *filename ) { // Try bsp texture first Q_sprintf(texname, "#%s:%s.mip", map->name, texture_name); - int tex_id = VK_FindTexture(texname); + tex_id = VK_FindTexture(texname); gEngine.Con_Reportf("Looked up texture %s -> %d\n", texname, tex_id); // Try wad texture if bsp is not there